Question #25060

The grade level of undergraduate college students is typically determined
according to the following schedule:
Number of Credits Completed letter Grade

Less than 32 Freshman
32 to 63 Sophomore
64 to 95 Junior
96 or more Senior
Using this information, write a C++ program that accepts the number of credits a student has completed, determines the student’s grade level, and displays the grade level.

Expert's answer

#include <iostream>
using namespace std;
#include <conio.h>
int main()
{
    int num = 0;
    cout << "Number of credits completed: ";
    cin >> num;
    if(num < 32) {cout << endl << "Your grade level is: Freshman ";}
    if((num >= 32) && (num <= 63)) {cout << endl << "Your grade level is: Sophomore ";}
    if((num >= 64) && (num <= 95)) {cout << endl << "Your grade level is: Junior ";}
    if(num >= 96) {cout << endl << "Your grade level is: Senior ";}
    getch();
    return 0;
}
LATEST TUTORIALS
APPROVED BY CLIENTS