/*********************************************** * * * * * CSCI 1470, Fall 2005 * * Machine Problem: MP * * Purpose: Compute grade based on tests * * and quizzes using switch. * ***********************************************/ #include using namespace std; int main(void) { char student_name[22]; int student_id, test_1, test_2, test_3, quiz_1, quiz_2, quiz_3, sum_test, sum_quiz; double average_score; cout << "Student name: "; cin.getline(student_name,22); cout << endl << "Student ID: "; cin >> student_id; cout << endl << "Test1: " << endl; cin >> test_1; cout << "Test 2: " << endl; cin >> test_2; cout << "Test 3: " << endl; cin >> test_3; return 0; }//end of function main