Download presentation
Presentation is loading. Please wait.
Published byRoberta Lyons Modified over 9 years ago
1
Hudson Valley Community College CISS-110 – Programming & Logic I David Goldschmidt, Ph.D.
2
Hardware consists of five key subsystems: from Fluency with Information Technology, 4th edition by Lawrence Snyder, Addison-Wesley, 2010, ISBN 0-13-609182-2
3
Each instruction goes through this cycle: from Fluency with Information Technology, 4th edition by Lawrence Snyder, Addison-Wesley, 2010, ISBN 0-13-609182-2
11
We use ten symbols to count Digits: 0 1 2 3 4 5 6 7 8 9 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?
12
The powers of 2 give us the decimal weights Convert 10011001 from binary to decimal: 10011001 in decimal is 128 + 16 + 8 + 1 = 153 powers of 22727 2626 2525 2424 23232 2121 2020 decimal weights1286432168421 binary digits10011001
13
Hexadecimal is base 16 It uses 16 digits: 0 1 2 3 4 5 6 7 8 9 A B C D E F Why use hex? Binary numbers are too long What’s 2BAD in decimal? decimalbinaryhexadecimal 000000 100011 200102 300113 401004 501015 601106 701117 810008 910019 101010A 111011B 121100C 131101D 141110E 151111F
14
Represent printable and special characters What about Unicode? from Fluency with Information Technology, 4th edition by Lawrence Snyder, Addison-Wesley, 2010, ISBN 0-13-609182-2
15
public static void main( String[] args ) { float x; System.out. println( "... Java source code 7A 56 78 9F FE F2 65 58 99 76 6D 4E intermediate code (byte code) translation program (compiler) virtual machine (JVM) A6 65 54 98 8F AB AE 33 38 8F DA 44 intermediate code of precompiled libraries (java.util.Scanner byte code) program execution
16
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.