Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

A Web filter is a piece of software that

Answered: 1 week ago

Question

Which period is known as the chalolithic age ?

Answered: 1 week ago

Question

Explain the Neolithic age compared to the paleolithic age ?

Answered: 1 week ago