Java Tutorial Chapter 1 - An Introduction to Programming
Introduction:
A computer is just a bunch of switches which can be ON (1) or OFF (0) . So unless someone played around with those switches , a computer would do NOTHING!
I want to be a programmer!
So ,you have dreamed all your life to get the computer to do what YOU want ? Great, because that's what programming is all about.
But,it's kind of impossible to get the computer to do something useful using endless amounts of 1's and 0's . How about using English -like words instead ?
Words like print , random , or , and , not ....
So how does a PC understand me ?
Well it does not really . There is a special program called a COMPILER . It's job is to convert English - like words (used in programming languages such as JAVA , C++ and Visual Basic) to binary.
Of course , the basic principle of a computer system of Input -> Process -> Output is obeyed .