Question: write in c++ Exercise 2: Write a C+ program (using switch case and nested if statement) that reads the following student information: ID prefix, ID
Exercise 2: 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). B. Also, display the classification of the degree awarded according to tne ura varde as follows: The degree classification denends 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
Get step-by-step solutions from verified subject matter experts
