The grade level of undergraduate college students is typically determined according to the following schedule:

 

Number of credits completed

Grade level

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 numbers of credits a student has completed, determines the student’s grade level, and displays the grade level.


Answer:

#include

using namespace std;

int main()

{

int numOfCredits;

cout << "Please enter the number of credits : ";

cin >> numOfCredits;

if (numOfCredits < 32)

cout << "Grade Level is Freshman" <
else if ((numOfCredits >= 32) && (numOfCredits <= 63))

cout << "Grade Level is Sophomore" <
else if ((numOfCredits >= 64) && (numOfCredits <= 95))

cout << "Grade Level is Junior" <
else

cout << "Grade Level is Senior" <
return 0;

}

Computer Science & Information Technology

You might also like to view...

Switches use bridge protocol data units for which of the following? (Select all that apply.)

a. To select ports that are part of STP b. To calculate the longest distance to a root switch c. To elect a root switch for the spanning-tree network topology d. To remove redundant data paths

Computer Science & Information Technology

What is the default program association for JPG files on a Windows computer?

a.Explorer b.Photos c.Picasa d.Preview

Computer Science & Information Technology

The primary goal of the __________ monitoring domain is an informed awareness of the state of all the organization's networks, information systems, and information security defenses.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

____________________ refers to managed switches having the capability to copy data from any or all physical ports on a switch to a single physical port.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology