

















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Double-click the downloaded file to install it ... It might be put on the end of a line of code ... Mistakes.java:7: reached end of file while parsing.
Typology: Slides
1 / 57
This page cannot be seen from the preview
Don't miss anything!


















































Introduction to Java
2
COMPUTER PROCESSING
CSC 1051
4
Humans converse with each other using natural languages
Humans converse with computers using programming languages
5
You tell the computer what to do using a sequence of step- by-step instructions called a program
Developing a program involves a few activities:
Starting in the mid-20th^ century…
Colossus Mark I – first electronic computer to be programmable (Alan Turing, England 1944) Stored program and the fetch/ decode/execute cycle (John von Neumann, USA 1945) ENIAC - first fully electronic digital computer (Eckert and Mauchley, University of Pennsylvania, 1946)
Alan Turing (1912 -1954) The Imitation Game (2014)
8
The source program is written by a programmer in a high- level language, like Java, Python, or C.
The target program comes out of the compiler in either a textual form called assembly language or a binary (1s and 0s) form called machine code.
A compiler translates from source to target language.
10
Hardware
Software
A computer needs both
11
Modern computers all use a computer architecture created in 1945 by a mathematician and inventor named John von Neumann containing 5 essential computer components.
13
Hardware needs software to tell it what to do. There are two categories of software:
Operating Systems
Application Programs
14
Binary numbers use the position of each bit, just like decimal numbers do, to determine their values.
Each position is a power of two. From right to left, the values are 1s, 2s, 4s, 16s, 32s, 64s, 128s, etc.
1 bit 0 1
2 bits 00 01 10 11
3 bits 000 001 010 011 100 101 110 111
4 bits 0000 0001 0010 0011 0100 0101 0110 0111
1000 1001 1010 1011 1100 1101 1110 1111
Each additional bit doubles the number of possible permutations
19
To save space, the hexadecimal number system was devised using base 16 numbers to represent numbers from 0 to 15 with a single hex digits. It uses decimal digits 0 to 9 followed by letters A (for 10), B (11), C (12), D (13), E (14), and F (15).
How many bits would you need to represent ten digits in decimal system?
0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7
1000 8
1001 9
The rest of the permutations are not needed