Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem Description Write a program that prompts the user to enter two characters and display the corresponding major and year status. The first character indicates
Problem Description Write a program that prompts the user to enter two characters and display the corresponding major and year status. The first character indicates the major. And the second character is a number character 1, 2, 3, 4, which indicates whether a student is a freshman, sophomore, junior, or senior. We consider only the following majors B (or b): Biology C (or c): Computer Science I (or i): Information Technology and Systems M (or m): Marketing H (or h) Healthcare Management A (or a): Accounting Note that your program needs to let the user know if the major or year is invalid. Also, your program should be case-insensitive: your program should tell "Marketing" either user type 'm' or 'M Here are three sample runs: Sample 1 Enter two characters: i3 Information Technology and Systems Junior Sample 2: Enter two characters: B5 Biology Invalid year status Sample 3: Enter two characters: 12 Invalid major
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