Question: Let us write a program to prompt the user to enter TWO characters on one single line and display the status and major represented in

Let us write a program to prompt the user to enter TWO characters on one single line and display the status and major represented in the characters. The second character indicates the major and the first is number character (1,2,3, or 4), which indicates whether a student is a freshman, sophomore, junior, or senior. Suppose the following characters are used to denote the majors:
M/m: Marketing
F/f: Finance
I/i: Information Technology
Sample Run 1
Enter two characters: 1I
Freshman
Information Technology
Sample Run k
Enter two characters: 1i
Freshman
Information Technology
Write your Python program and put your source code here.

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!