Question: MIPS PROGRAMMING: Write a program to announce the classification of a student based on the credit hours earned: Hours > 90 ==> Senior; Hours >
MIPS PROGRAMMING: Write a program to announce the classification of a student based on the credit hours earned: Hours > 90 ==> Senior; Hours > 60 ==> Junior Hours > 30 ==> Sophomore; Hours > 0 ==> Freshman ====================================================== TEST CASES: {12345, 12} {54321, 60} {379242, 89} {8432173, 31} {4807, 48} {33592, 30} {11837, 75} ====================================================== Pseudo-code: int ID, Hours. cout << "Enter ID: "; cin >> ID; cout << "Enter Hours Earned: "; cin >> Hours; cout << "ID " << ID " has earned " << Hours << " credit hours." << endl; cout << ID << " is a "; //-| Apply the classification rules. if (Hours > 90) cout << " SENIOR" << endl; else if (Hours > 60) cout << " JUNIOR" << endl; else if (Hours > 30) cout << " SOPHOMORE" << endl; else cout << " FRESHMAN" << endl; ----------------------------------------------- Example: Inputs: ID = 4807, Hours = 48 output: 4807 has earned 48 credit hours. output: 4807 is a SOPHOMORE
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
