Computer Science 202
Introduction to Programming
Fall 2012, The College of Saint Rose
Lecture 2: Binary and Hexadecimal Representations
Date: Thursday, August 30, 2012
Agenda
- Announcements
- Prep for getting into flowcharting and Java programming next week:
- order your Visual Logic PIN
- if you plan to use your own laptop, follow setup
instructions for both Visual Logic and Java/BlueJ in
Blackboard before our next class meeting - do not hesitate
to ask for help!
- if you plan to work on school computers, your best bet
is to get Visual Logic set up on a flash drive (it's
straightforward to do so)
- Where to turn things in with Blackboard
- Lecture assignment 1 recap
- Number conversions: binary-decimal-hexadecimal
- Representing other types of data
- Units
- Hardware components
Lecture Assignment 2
Due at the start of class, Tuesday, September 4, 2012.
Please submit answers to these questions
in Blackboard by the start of class. We will discuss these questions at
the start of class, so no late submissions are accepted.
- Please fill in the missing entries in the following table, or state
that a given entry is impossible (i.e., the number does not fit in the
number of digits specified). (5 points total)
Decimal | 8-bit Binary | 16-bit Binary | 2-digit Hex | 4-digit Hex |
21710 | | | | |
| 100101102 | | | |
| | 00101100011011102 | | |
| | | A716 | |
| | | | ACED16 |
|
- What is the largest number that can be represented in 10 decimal
digits? 10 binary digits? 10 hexadecimal digits. Please give all
answers in the specified base as well as decimal. (3 points)
Examples
Links