Hudson Valley Community College CISS-110 – Programming & Logic I David Goldschmidt, Ph.D.
Hardware consists of five key subsystems: from Fluency with Information Technology, 4th edition by Lawrence Snyder, Addison-Wesley, 2010, ISBN
Each instruction goes through this cycle: from Fluency with Information Technology, 4th edition by Lawrence Snyder, Addison-Wesley, 2010, ISBN
We use ten symbols to count Digits: Computers use two symbols to count Digits: 0 1 (why?) What is the exact mechanism for counting? How do we count from 1 to 20?
The powers of 2 give us the decimal weights Convert from binary to decimal: in decimal is = 153 powers of decimal weights binary digits
Hexadecimal is base 16 It uses 16 digits: A B C D E F Why use hex? Binary numbers are too long What’s 2BAD in decimal? decimalbinaryhexadecimal A B C D E F
Represent printable and special characters What about Unicode? from Fluency with Information Technology, 4th edition by Lawrence Snyder, Addison-Wesley, 2010, ISBN
public static void main( String[] args ) { float x; System.out. println( "... Java source code 7A F FE F D 4E intermediate code (byte code) translation program (compiler) virtual machine (JVM) A F AB AE F DA 44 intermediate code of precompiled libraries (java.util.Scanner byte code) program execution
Read and study Chapter 1 Get Textpad up and running Do Project #1: Given a 3-digit number: Generate output that shows each digit: int num = 582; The number is 582 The hundreds column is 5 The tens column is 8 The ones column is 2