Home > Articles > Programming > C/C++

  • Print
  • + Share This
This chapter is from the book

Activities

  1. 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.)

  2. 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.

  • + Share This
  • 🔖 Save To Your Account