Beruflich Dokumente
Kultur Dokumente
#1
Understanding computer science fundamentals
Computer science is about data structures how the computer organizes, stores, and processes data. Since computers are machines and cannot think, we must give the computer instructions using its medium the programming language. We use the programming constructs (ways to perform functions) so the computer will know how to process the given data..
Lets try to convert base 10 numbers to binary! - Go to your word processing program. - Create a table with 8 columns and 2 rows. - In the first row, from right to left (go to column 8) type the number in column 8; 2 in column 7 (and so on); 4, 8, 16, 32, 64, 128, 256 - What is the binary conversion of the value 56?
Hexadecimal values are base 16 numbers: digits that represent the decimal values 10 through 15 using letters A through F.
123456789ABCDEF
10 11 12 13 14 15
Object: Dog
Method:
Method:
Swim
Bark
Java is an object oriented programming language. Objects are the fundamental elements that make up the program.
Object-oriented programming
Class Object Method - is the format of the class definitions
class
object
method
Object-oriented programming
To get an object to work, we have to create the class, followed by creating a method, then we call or invoke on the object.
class
object
method
The basic structure of a Java program: 1. The first few lines of the program are comments that start with // 2. The rest of the program is a class definition:
Next lesson:
Next Elluminate student session is August 20 at 4pm
If you attend the session, no written assignment. Your attendance is your grade! Important: JCreator and the JDK 5 compiler must be up and running!