Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Write a program that prompts the user to enter their name and then two characters that give information about their student status. Then it

C++ Write a program that prompts the user to enter their name and then two characters that give information about their student status.

Then it it displays their name, then two characters that give information about their student status.

Then it displays their name, their major and year of status represented by the actual words i.e Computer Science.

The first character they will give you will indicate their major and the second character will be a number 1, 2, 3, or 4, which indicates whether a student is a freshman, sophomore, junior or senior.

Use the following characters to denote the majors:

M: Mathematics

C: Computer Science

E: Engineering

They must first see a menu for their choices of majors. Once they enter their major then they get to see a menu that will let them choose what year they are in.

You must use an if statement to check for the major

and a switch statement to check for the year

Comment your program explaining your steps

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_2

Step: 3

blur-text-image_3

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

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

Students also viewed these Databases questions

Question

Who is their opposite on each scale?

Answered: 1 week ago

Question

Describe the patterns of business communication.

Answered: 1 week ago

Question

3. Provide two explanations for the effects of mass media

Answered: 1 week ago