//Main File (usestudentacc.cpp) #include #include \"studentacc.h\" using namespace std; int m_menu(); int aid_menu(); int f_aid(); int getCharge(); //Different charges for student account const int AID = 1, BALANCE = 2, QUIT = 3; const int SCHOLARSHIPS = 1, WORK = 2; int main() { Studentacc sa; float cash, amount; int choice, charge, aid; cout << \"Enter the amount availible for payment: $\"; cin >> cash; sa.setBalance(cash); cout << fixed << showpoint << setprecision(2); //School Fees charge = getCharge(); sa.addCharge(charge); amount = sa.getBalance(); sa.setBalance(amount); if(amount<0) { cout << \"You owe $\" << (-1) * amount << \"this semester\" << endl; } else { cout << \"Your balance is $\" << amount << endl; } choice = m_menu(); while(choice !=QUIT) { if(choice == AID) { aid = f_aid(); sa.addCharge(amount); } choice = m_menu(); } } int m_menu() { int choice; bool error = false; cout << endl; cout << \"MAIN MENU\" << endl; cout << \"1 Financial Aids\" << endl; cout << \"2 Balance\" << endl; cout << \"3 Quit\" << endl; do{ cout << \"Enter option number: \"; cin >> choice; if((choice > 3)||(choice < 1)) { cout << \"Invaid number. Choose 1 or 2, or 3.\ \"; error = true; } else { error = false; } }while(error == true); return choice; }//end intmenu int getCharge() { int hours, tuition, dorm_plan, meal_plan, SA_fee, Technology_fee, total_fee; char response; bool error; cout << \"How many credits hours are you taking this semester? (max = 21)\ \"; cin >> hours; do { if((hours>21)||(hours<0)) { cout << \"\ That is an invalid credit hour(s). Enter a valid credit hour\ \"; error = true; } }while(error==true); if(hours>17&&hours>12) { tuition = 9828; //Package deal cout << \"\ Your tuition is $9,828\ \"; } else if (hours>17) {//increment by 615 every 1 credit after 17 tuition = (hours-17)*615+9828; cout << \"\ Your tuition is $\"; } else { tuition = hours * 819; //Part-time school cout << \"\ Your tuition is $\" << tuition << endl; } do{ cout << \"\ A fixed Student Association fee is collected from each\" << endl; cout << \"\ enrolled student for the purpose of operating, maintaining,\" << endl; cout << \"\ improving and equipping the Student Association.\" << endl; cout << \"The Student Association fee is $\" << SA_fee << endl; SA_fee = 110; } while(error == true); do{ cout << \"\ The technology fee is $\" << Technology_fee << endl; Technology_fee = 200; } while(error == true); do { cout << \"\ Are you staying in the dorm? (yes or no) \ -->\"; cout << \"\ Enter y for yes or n for no. \ \"; cin >> response; if(response==\'y\') { cout << \"\ Dorm plan is $1,850\ \"; dorm_plan = 1850; error = false; } else if(response==\'n\') { cout << \"\ You don\'t have a dorm plan\ \"; dorm_plan = 0; error = false; } else { cout << \"\ Invalid character, please try again\ \"; error = true; } } while(error == true); do { cout << \"\ Do you have a meal plan? (y or n)\ -->\"; cout << \"\ Enter y for yes or n for no. \ \"; cin >> response; if(response==\'y\') { cou.