Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started