< Back
Page 9 of 9
This chapter is from the book
Activities
-
Create a program that uses constants for a touchdown (6 points), field goal (3 points), extra point (1 point), and safety (2 point) and then adds them in the same order they were scored by the teams in the last Super Bowl. Display the final score. (For extra credit, make the Indianapolis Colts win.)
-
Expand the Rectangle program so that it determines the area of a three-dimensional rectangle that has width, length, and height. To determine the area, use the multiplication operator * to multiply all three values.
To see solutions to these activities, visit this book's website at http://cplusplus.cadenhead.org.
< Back
Page 9 of 9