CIS 67 Lab 1
joda.temple.edu/~koffman
if (x 0.0)
cout << "x is positive" << endl;
displays the message "x is positive" if x is greater than zero. Your new if statement should look similar to this one.
Just before the line //Read in the count of nickels and pennies.
Insert another closing curly brace at the end of the program. Explain the effect of adding these lines. What would happen if the number 3 were replaced with 5?
7. Assignments for next time: Projects #6, p. 98 and programming exercise #3 p. 112. For #6, if the product is 3/4, the percentage should be 75.0. Follow the software development method and place the documentation in a long comment before each program.
/* this is how you write
a long comment
that comes at the beginning of your program
*/