Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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 seoond character is 8 number character 1, 2, 3, 4, which indicates whether stadent is freshrman, sophormore, junior, or semior We consider only the following majors: B (or b): Biology C (or c): Computer Science I Cor i Information Tochnology and Sysiems M (or m): Marketing H (or h Healthcare Management A (or a: Accounting Note thal your program noeds to let the user know if the major or year is invalid. Also, yout program should be ease-insensitive your program shoakd tel "Marketing either user type m' or 'M Here are throe sample runs: Sample 1: Enter two charactersi3 Infor mation Technology and Systems unior Sample 2 Enter two characters: B5 Biology Invalid year status Sample 3 Enter two characters 12 Invalid major What to deliver? Your java file including 1 Five smple uns with the following five input: (2 5 points) (2) T3 (3) A2 (5) o4 Note that you need to run your program 5 times. Each time you run it, copy and paste the program output to the top of your program. 2. Yourcode with other appropriate comments. (Code: 5 points, Commonts:2.Spoints)
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