
Lesson 4-2: Input Statement and Data Consistency
Program Input and the Software Design Process | 83
Name __________________________________________ Date _______________________
Section _________________________________________
Exercises 1 through 3 use program shell ReadData.
// Program ReadData is a test bed for you to try various
// combinations of input statements with different data
// configurations.
// It determines the cost of a sheet of glass given the
// dimensions and the price per square foot of glass.
#include <iostream>
#include <iomanip>
using namespace std;
const int inchesInSqFt = 144;
int main ()
{
int length; // Measured in inches
int width; ...