#include < iostream.h > #include "Sunglass.h" int main() { CSunglass glasses[5]; int choice1=0; int choice2=0; int g; char nl; while(choice1<3){ cout << "Main Menu" << endl; cout << endl; cout << "1. Enter Inventory" << endl; cout << "2. Go to Report Menu" << endl; cout << "3. Exit program." << endl; cout << endl; cout << "Enter your choice (1-3)" << endl; cin >> choice1; cin.get(nl); switch(choice1) { case 1: for(g=0;g<5;g++) glasses[g].info_in(); break; case 2: choice2=0; while(choice2 < 2) { cout << "Report Menu" << endl; cout << endl; cout << "1. Display Inventory." << endl; cout << "2. Return to main menu." << endl; cout << "Enter Choice (1-2)" << endl; cin >> choice2; cin.get(nl); switch(choice2) { case 1: for(g=0;g<5;g++) glasses[g].info_outJ(); break; case 2: break; } } case 3: break; } } return(0); }