|
Ch. 4 Demo Program #1 - to illustrate
the declaration and use of constants
Ch. 4 Demo Program #2 - to illustrate
the dangers of not initializing variables when declaring them
Ch. 4 Demo Program #3 - to illustrate
the use of an assignment statement
Ch. 4 Demo Program #4 - find the errors
Ch. 4 Worksheet #1 - variable names, initialization,
& assignment
Ch. 4 Worksheet #2 - types of statements,
data types
Ch. 4 Worksheet #3 - find the errors.
As a class, build several demonstration programs that
...
- displays several lines of output such as the 5 Steps of the
Programming Process with several cout statements
- displays several lines of output with only one cout statement
- displays a long line of output but still prints nicely (without
being cut-off)
- uses an int variable and prints the value of the variable
- displays an output message along with the value of a variable
- performs a computation and an assignment and then prints
the new value of the variable
- uses a constant in an expression
- a program that uses each of the data types considered most
important for this class (int, double, & char)
- a program that reflects the Coding
Standards for this course (practically any online demo program
such as Ch. 4 Demo #1)
- a program that does not reflect the proper Coding
Standards for this course
(see Ch. 4 Worksheet #3)
|