CMPSC 201 Class #2 Lecture
(if time) Review Ch. 3 demo programs:
Ch. 3 Demo #1
- Declaring and using constants
Ch. 3 Demo #2
- Correct the errors in this program
Ch. 3 Demo #3
- Implicit and explicit conversion (promotion & typecasting)
Ch. 3 Demo #4
- Int and char datatypes and typecasting
Ch. 3 Demo #5
- rounding to a decimal place with my "macho method" of rounding
Ch. 3 Demo #6
- using setprecision to display rounded values, using setw, etc.