Computer Science 433
Programming Languages
Fall 2014, The College of Saint Rose
Lecture 16: Data Types
Date: Monday, October 27, 2014
Agenda
- Guest lecture on recursion
- Announcements
- Language project [HTML]
[PDF] group
formation (or notification that you plan to work alone) deadline
today
- Program/Problem Set 7: Names and Data Types [HTML] [PDF] continues
- Lecture 15 assignment recap
- More data types
Lecture 16 Assignment
Due at the start of class, Wednesday, October 29.
Please submit answers to these questions
in Submission
Box under "LA16" or in hard copy by the
start of our next class. We will discuss these questions at the
start of class, so no late submissions are accepted. Please be sure
that your name is clearly indicated in all submissions.
- Give the IEEE 754 32-bit representation of the number 16.25. Do
not worry about endianness. (3 points)
Sign Bit | Exponent | Mantissa |
| | |
|
- Give the BCD representation for the number 2615 in binary and in
hexadecimal. (3 points)
Terminology
- floating point underflow
- bias
- complex data
- binary coded decimal
- enumerated type
- subrange type
Examples
- ccomplex
- enum
- hello_pascal
- pascal_subrange
Links