This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
// Subway.cpp : Defines the entry point for the console application.
//This program is to count the number of patrons in the subway. First, a patron's age
// is entered. Next, the number of various customers is calculted. Finally, the counts
// are displayed.
using namespace std;
//Beginning of Main Function
int _tmain(int argc, _TCHAR* argv)
//Enter age until the sential value being -1 to stop the loop
cout << "\nPlease enter customer's age: " << endl;
cin >> age;
//Count according to age
else if(age>=18 && age<=64)
This is only a preview of the solution. Please use the purchase button to see the entire solution