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

Java Programming. Please avoid using printf statements. Java Programming. Please avoid using printf statements. Write a program that user

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!