Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions

Question

Outline the regulatory framework for workplace health and safety

Answered: 1 week ago