Question: Write a C++ program (using switch case and nested if statement) that reads the following student information: ID prefix, ID Number, name, and GPA out

 Write a C++ program (using switch case and nested if statement)

Write a C++ program (using switch case and nested if statement) that reads the following student information: ID prefix, ID Number, name, and GPA out of 4.0. Use 4 variables with appropriate (and different) data types for each piece of information (ID prefix, ID number, name, and GPA). The ID prefix is the letter at the start of the ID (e.g., if the student ID is u012345 then the ID prefix = ' u ' and the ID number is 12345). A. The nrooram then disnlave the followino messaoe. B. Also, display the classification of the degree awarded according to the GPA value as follows: The degree classification depends on the value of the GPA as follows: C. Use field width of 8 with 2 digits after the decimal point to display the GPA

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!