Question: Java Programming. Please avoid using printf statements. Write a program that user enters two characters and the corresponding major and year status are displayed. The
Write a program that user enters two characters and the corresponding major and year status are displayed. 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 (ori): 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: t2 Invalid major Sophomore
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
