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 or which indicates whether a student is a freshman, sophomore, junior, or senior. Suppose the following characters are used to denote the majors:
Mm: Marketing
Ff: Finance
Ii: Information Technology
Sample Run
Enter two characters: I
Freshman
Information Technology
Sample Run k
Enter two characters: i
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
