#include #include #include void main(void) { string first_name; char middle_initial; string last_name[80]; int year_in_school; int age; bool resident; long student_id; string major; float gpa; // Get student's information cout << "First name: "; cin >> first_name; cout << "Middle initial: "; cin >> middle_initial; cout << "Last name: "; cin >> last_name; cout << "age: "; cin >> age; cout << "Year in school (0 = freshman, 1 = sophomore, etc.): "; cin >> year_in_school; cout << "Resident(enter 1) or Non-resident (enter 0): "; cin >> resident; cout << "Student Id (without -'s): "; cin >> student_id; cout << "Major (abbreviation, e.g. CSCI): "; cin >> major; cout << "GPA: "; cin >> gpa; // Print out the information clrscr(); cout << "Name: " << first_name << " " << middle_initial << " " << last_name << "\n"; cout << "Age: " << age << "\n"; cout << "Year: " << year_in_school << "\n"; cout << "Resident/Non-resident: " << resident << "\n"; cout << "Student Id: " << student_id << "\n"; cout << "Major: " << major << "\n"; cout << "GPA: " << gpa << "\n"; cout << "\n\nEnter any key to exit\n"; getch(); }