Electrical and Computer Engineering
18 of 24
UAH
CPE 112
Case Study Implementation
•void GetData( /*out*/ int& crew,
•              /*out*/ int& passengers,
•              /*out*/ int& closet,
•              /*out*/ int& baggage,
•             /*out*/ int& fuel       ) 
•{  
•    cout << "Enter the number of crew members." << endl;
•    cin >> crew;
•    cout << "Enter the number of passengers." << endl;
•    cin >> passengers;
•    cout << "Enter the closet cargo weight, in pounds."
•         << endl;
• cin >> closet;
•    cout << "Enter the weight, in pounds, of cargo in
•             the aft baggage compartment." << endl;
• cin >> baggage;
•    cout << "Enter the number of U.S. gallons of fuel"
•         << endl << " loaded.“;
•    cin >> fuel;
•}