SHARING KNOWLEDGE EACH OTHERS!

Wednesday, December 31, 2008

scanner function(celsius convert to fahrenheit )


import java.util.Scanner;

public class TemperatureConverter2
{
//-----------------------------------------------------------------
// using scanner to give input
//-----------------------------------------------------------------
public static void main (String[] args)
{
double celsius;
Scanner scan = new Scanner (System.in);
System.out.println ("Enter celsius :");
celsius = scan.nextDouble();

double fahrenheit;
fahrenheit= (celsius * 9/5 + 32);

System.out.println ("fahrenheit is :" + fahrenheit);
}
}
GO TO CHAPTER 3


scanner function (celsius convert to fahrenheit )


public class TemperatureConverter1
{
//-----------------------------------------------------------------
// change the Fahrenheit equivalent of a specific Celsius
//-----------------------------------------------------------------
public static void main (String[] args)
{

double fahrenheitTemp;
int celsiusTemp = 24;
System.out.println ("Celsius Temperature: " + celsiusTemp);
System.out.println ("Fahrenheit Equivalent: " + (celsiusTemp*9/5+32));
}
}
GO TO CHAPTER 3


scanner function (celsius convert to fahrenheit )


public class TemperatureConverter
{
//-----------------------------------------------------------------
// change the Fahrenheit equivalent of a specific Celsius
//-----------------------------------------------------------------
public static void main (String[] args)
{
final int BASE = 32;
final double CONVERSION_FACTOR = 9.0 / 5.0;

double fahrenheitTemp;
int celsiusTemp = 24; // value to convert

fahrenheitTemp = celsiusTemp * CONVERSION_FACTOR + BASE;

System.out.println ("Celsius Temperature: " + celsiusTemp);
System.out.println ("Fahrenheit Equivalent: " + fahrenheitTemp);
}
}
GO TO CHAPTER 3


scanner function(simple input)


import java.util.Scanner;

public class input
{
//-----------------------------------------------------------------
// using scanner to give input
//-----------------------------------------------------------------
public static void main (String[] args)
{
String input;
Scanner scan = new Scanner (System.in);

System.out.println ("Give your input:");

input = scan.nextLine();

System.out.println ("Ur input is: \"" + input + "\" ");
}
}
GO TO CHAPTER 3


scanner function(average)


import java.util.Scanner;

public class calculationoftwoinput
{
//-----------------------------------------------------------------
// calculate two inputs.
//-----------------------------------------------------------------
public static void main (String[] args)
{
int mark1;
int mark2;
int total;
double average;

Scanner scan = new Scanner (System.in);

System.out.print ("Enter mark1: ");
mark1 = scan.nextInt();

System.out.print ("Enter mark2: ");
mark2 = scan.nextInt();

total = mark1 + mark2;
average = total/2;

System.out.println ("Total mark is : " + total);
System.out.println ("Average mark is: " + average);
}
}
GO TO CHAPTER 3


Using Scanner in java(convert metre into centimeter)


import java.util.Scanner;

public class calculation
{
//-----------------------------------------------------------------
// HOW CALCULATE INPUT
//-----------------------------------------------------------------
public static void main (String[] args)
{
int meter;
int centimeter;

Scanner scan = new Scanner (System.in);

System.out.print ("Enter meter : ");
meter = scan.nextInt();

centimeter = meter* 100;

System.out.println ("centimeter is : " + centimeter);
}
}
GO TO CHAPTER 3


Sunday, December 28, 2008

database1


Data Independence

Physical representation and location of data and the use of that data are separated
•The application doesn’t need to know how or where the database has stored the data, but just how to ask for it.
•Moving a database from one DBMS to another should not have a material effect on application program
•Recoding, adding fields, etc. in the database should not affect applications

Database Application

An application program (or set of related programs) that is used to perform a series of database activities:
•Create
•Read
•Update
•Delete
•On behalf of database users

Metadata

Data about data

In DBMS means all of the characteristics describing the attributes of an entity,
E.G.:
–name of attribute
–data type of attribute
–size of the attribute
–format or special characteristics


Saturday, December 27, 2008

Java - Separators


There are a few characters that are used as separators in java. The mostly commonly used separator in java is the semicolon. As you have seen, it is used to terminate statements.

() called Parentheses used to contain list of parameters in method definition and invocation. Also used for defining precedence expressions in control statements, and cast type.

Braces {} used to contain the values of automatically initialized arrays. Also it is used to define a block of code, for classes, methods, and local scopes.

Brackets [], it is used to declare array types. Also it is used when dereferencing array values.

Comma , it separates consecutive identifiers in a variable declaration. Also it is used to chain statements together inside a for statement.

Period “ .” it is used to separate package names from sub packages and classes. And it is also used to separate a variable or method from a reference variable.


GO TO CHAPTER 2



Java - What are identifiers?


Identifiers are used for class names, and variable names. An identifier may be many descriptive sequence of uppercase and lowercase letters, numbers, or the underscore and dollar- sign characters. They must not begin with the number. Java is a case – sensitive.

GO TO CHAPTER 02


Java - What are reserved words?


Reserved words or keywords are words that have a precise meaning to the compiler and cannot be used for other purposes in the program. For example, when the compiler sees the word class, it understands that the word after class is the name for the class.

Learn more keywords

const ,finally, int , public, this, continue, float, interface, return, throw, abstract, Boolean, break,

default ,for ,long ,short ,throws, do, goto, native, static, transient, double, byte, case, catch, char

if, new , strictfp, try, else, implements, package, super, void ,extends, import, class, private, switch, volatile, final, instanceof, protected, synchronized ,while

The keywords const and goto are reserved but they are not in used.


GO TO CHAPTER 02


Java - What are comments ?


In Java, comments are preceded by two slashes (//) in a line, or enclosed between /* and */ in one or multiple lines. When the compiler sees //, it ignores all text after // in the same line. When it sees /*, it scans for the next */ and ignores any text between /* and */. Let’s look why comments are important in a program. The compiler is not going to compile the statement after the line comment or between comments. So it will skip the statement then the rest will be compiled by the compiler. So you can give any description in comments.

GO TO CHAPTER 02


Thursday, December 25, 2008

CHAPTER TWO


public class sum{
//-----------------------------------------------------------------
// SIMPLE CALCULATION & STATEMENT
//-----------------------------------------------------------------
public static void main (String[] args){
// see the different of using(+ for giving tatement)
System.out.println ("90 and 30 JOINED: " + 90 + 30);
//sum of the ()
System.out.println ("300 and 150 SUMED: " + (300 + 150));
}
}

THIS IS A SIMPLE EXAMPLE HOW TO JOIN TWO NUMBER IS THE FIRST PRINT OUT, THE SECOND OUTPUT IS HOW SUMING THE TWO NUMBERS........
COPY THIS CORD AND PAST ON YOUR TEXT PAD AND SAVE IT AS SUM.JAVA, AND THE SAVE AS TYPE IS ALL FILE.


CHAPTER ONE-6


public class Tab {
public static void main(String[]args) {
System.out.println("1\t2\t3\t4\t5\t\n6\t7\t8\t9\t0");
}
}

THIS IS A SIMPLE EXAMPLE OF HOW TO USE TAB (\t) COPY THIS CORD AND PAST ON YOUR TEXT PAD AND SAVE IT AS Tab.JAVA, AND THE SAVE AS TYPE IS ALL FILE.
CHAPTER ONE MAIN


CHAPTER ONE-5


public class First_5 {
public static void main(String[]args) {
System.out.println("1\t2\t3\t4\t5");
System.out.println("6\t7\t8\t9\t0");
}
}
CHAPTER ONE MAIN


CHAPTER ONE-4


public class First_4 {
public static void main(String[]args) {
System.out.println("Tamilan live in every country\n"+
"But they don't have own country\n"+
"They are a refugee now");
}
}
CHAPTER ONE MAIN


CHAPTER ONE-3


public class First_3 {
public static void main(String[]args) {
System.out.println("Tamilan live in every country"+
"But they don't have own country"+
"They are a refugee now");
}
}
CHAPTER ONE MAIN


CHAPTER ONE-2


public class First_2 {
public static void main(String[]args) {
System.out.println("Tamilan live in every country");
System.out.println("But he dosen't own country");
System.out.println("He is a refugee now");
}
}

CHAPTER ONE MAIN


CHAPTER ONE-1


public class Print{
//-----------------------------------------------------------------
// function of print
//-----------------------------------------------------------------
public static void main (String[] args) {
System.out.print ("Srilanka is a blood river country");
System.out.print ("Majority is Singalish");
System.out.print ("They are killing tamil people");

//----------------------------------------------------------------
// function of println watch output to understand the different
//-----------------------------------------------------------------
//to give line space
System.out.println (" ");
System.out.println (" ");
System.out.println ("Srilanka is a blood river country");
System.out.println ("Majority is Singalish");
System.out.println ("They are killing tamil people");
}
}
THIS IS A PROGRAM SHOWS THE DIFFERENTS OF THE PRINT AND PRINTLN COPY THIS CORD AND PAST ON YOUR TEXT PAD AND SAVE IT AS Print.JAVA, AND THE SAVE AS TYPE IS ALL FILE.
CHAPTER ONE MAIN


CHAPTER ONE


public class Simplestatment
{
//-----------------------------------------------------------------
// HOW TO GIVE SENTANCE AS OUT PUT,
//-----------------------------------------------------------------
public static void main (String[] args) {
System.out.println ("This is my first step in java programming");
System.out.println ("i am a tamil srilankan refugee");
System.out.println ("i don't have any country to live");
}
}


THIS IS A SIMPLE EXAMPLE HOW TO GET A OUT PUT OF SIMPLE STATMENT COPY THIS CORD AND PAST ON YOUR TEXT PAD AND SAVE IT AS Simplestatment .JAVA, AND THE SAVE AS TYPE IS ALL FILE.

CHAPTER ONE MAIN


CPU


It is stand for central processing system; it is the brain of a computer. The CPU is built by gates. Mostly it refers as processor. It has a cycle to perform a full job. To properly perform its job, the processor has to complete a four steps cycle. The first step in this cycle is to fetch an instruction as of a software program's memory. After fetches the instruction, its second step is to decode the instruction.
During the execution step, the CPU completes the instruction. It accomplishes this by following the information gained during the decoding step. on one occasion the CPU has completed executing the instruction, the last step in this cycle is to write-back the results that occurred during the execution step. The CPU can write-back the results to its own internal register, or to the main memory of the computer.
when I update a CPU?
How do I monitor CPU temperature?
  • First Generation Monitoring Solutions:
  • Second Generation Monitoring Solutions:
  • Third Generation Monitoring Solutions:
What is Dual Core Technology?
How dual-core processors work?


when I update a CPU?


It is seemed much easy to update the CPU nevertheless you must know the CPU (processor) dose it much to the motherboard. The motherboard speed and the CPU must cooperate on passing signals. This are the main things before you consider to buy a CPU.

Back to CPU


How do I monitor CPU temperature?


Too much heat damages electronics. Monitoring the temperature of CPU and other computer components keep them running appropriately. To properly use most software of this type, you will need to ensure you have ACPI functionality enabled in your motherboard BIOS.

First Generation Monitoring Solutions:
Monitoring Temperature in System Bios
Numerous PC motherboards now contain hardware monitoring circuits those are capable to measure heat, voltages, and fan speeds. The majority of modern motherboards also allow you to configure alerts, alarms and actions to take based on specific temperature and fan settings.

Second Generation Monitoring Solutions:
The first generation of CPU (processor) temperature monitoring software packages purely gave the CPU temperature correct value. There is no alarms indication, events, or actions could be defined; it is very poor technology so the user must take of his or her system, to prevent the damages from the heat. If the user wasn't watching, the system could easily overheat and cause system damage.
The second generation sensor circuits have the ability to regulate and control environmental conditions automatically, so that second generation solutions are enough to keep the system stable when heat is an issue, and quiet when it isn't.

Third Generation Monitoring Solutions:
This is the newest technology software, it is directly interact with the mother board sensor and fan control system to control the heat according to the system environment condition. The mother board companies started to cover their customers and they like to give high performances from their mother board. So they are giving free software’s with their mother board.

Back to CPU


What is Dual Core Technology?


The Dual core technology became with the idea of skipping on other and manages to do the both process at simulations time and the two processors are working in parallel. A dual core processor has two processors; they are combined as one processor non as Dual core Processors. It is efficient and very fast data execution. The dual core processor occupies less space on the mother board and it uses the less electricity. The core processors each has cache this two cache improved the multitasking ability of the system (computer).

Back to CPU


How dual-core processors work


Dual-core processors work pretty much as you'd expect them to. At their most basic, both Intel and AMD have taken two mostly (or in the case of Intel, fully) functional processor cores and joined them together in a single processor die. Each core functions and processes data independently, and the two are co-coordinated by the operating system software.


Back to CPU


Friday, December 5, 2008

CPU


1) CPU
It is stand for central processing system; it is the brain of a computer. The CPU is built by gates. Mostly it refers as processor. It has a cycle to perform a full job. To properly perform its job, the processor has to complete a four steps cycle. The first step in this cycle is to fetch an instruction as of a software program's memory. After fetches the instruction, its second step is to decode the instruction.
During the execution step, the CPU completes the instruction. It accomplishes this by following the information gained during the decoding step. on one occasion the CPU has completed executing the instruction, the last step in this cycle is to write-back the results that occurred during the execution step. The CPU can write-back the results to its own internal register, or to the main memory of the computer.

2) when I update a CPU?
It is seemed much easy to update the CPU nevertheless you must know the CPU (processor) dose it much to the motherboard. The motherboard speed and the CPU must cooperate on passing signals. This are the main things before you consider to buy a CPU.

3) How do I monitor CPU temperature?
Too much heat damages electronics. Monitoring the temperature of CPU and other computer components keep them running appropriately. To properly use most soft ware of this type, you will need to ensure you have ACPI functionality enabled in your motherboard BIOS.

First Generation Monitoring Solutions:
Monitoring Temperature in System Bios
Numerous PC motherboards now contain hardware monitoring circuits those are capable to measure heat, voltages, and fan speeds. The majority of modern motherboards also allow you to configure alerts, alarms and actions to take based on specific temperature and fan settings.

Second Generation Monitoring Solutions:
The first generation of CPU (processor) temperature monitoring software packages purely gave the CPU temperature correct value. There is no alarms indication, events, or actions could be defined; it is very poor technology so the user must take of his or her system, to prevent the damages from the heat. If the user wasn't watching, the system could easily overheat and cause system damage.
The second generation sensor circuits have the ability to regulate and control environmental conditions automatically, so that second generation solutions are enough to keep the system stable when heat is an issue, and quiet when it isn't.

Third Generation Monitoring Solutions:
This is the newest technology software, it is directly interact with the mother board sensor and fan control system to control the heat according to the system environment condition. The mother board companies started to cover their customers and they like to give high performances from their mother board. So they are giving free software’s with their mother board.

4) What is Dual Core Technology?
The Dual core technology became with the idea of skipping on other and manages to do the both process at simulations time and the two processors are working in parallel. A dual core processor has two processors; they are combined as one processor non as Dual core Processors. It is efficient and very fast data execution. The dual core processor occupies less space on the mother board and it uses the less electricity. The core processors each has cache this two cache improved the multitasking ability of the system (computer).

5) How dual-core processors work
Dual-core processors work pretty much as you'd expect them to. At their most basic, both Intel and AMD have taken two mostly (or in the case of Intel, fully) functional processor cores and joined them together in a single processor die. Each core functions and processes data independently, and the two are co-coordinated by the operating system software.


CHAPTER TWO



Java



Monday, December 1, 2008

CHAPTER 3



Enter your email address:

 

SOFTWARES AND PLATFORMS Copyright © 2010 LKart Theme is Designed by Lasantha