Module 1. Introduction to C and C++ Exercise Answers

1.  All five statements (a) through (e) are true.

2.
   // Compute and echo
   // volume of aquarium
      fish_number = volume / 256;  //Each fish needs 256 cubic inches of water

3.
   #include <iostream.h>

4.
   (a) cout << width << endl;
   (b) cout << "length is " << length << endl;
   (c) cout << alpha << beta << gamma << endl;

5.
   (a) cin >> width;
   (b) cin >> length >> width >> height;