Write a program that prompts the user to enter twocharacters and displays the major and status represented in the characters. The firstcharacter indicates the major and the second is number character 1, 2, 3, 4, whichindicates whether a student is a freshman, sophomore, junior, or senior. Supposethe following characters are used to denote the majors:I: Information ManagementC: Computer ScienceA: Accounting Here is a sample run: Enter two characters: I1 ↵EnterInformation Management Freshman

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 5E: a. Write a program named CheckMonth that prompts a user to enter a birth month. If the value entered...
icon
Related questions
icon
Concept explainers
Question

Write a program that prompts the user to enter two
characters and displays the major and status represented in the characters. The first
character indicates the major and the second is number character 1, 2, 3, 4, which
indicates whether a student is a freshman, sophomore, junior, or senior. Suppose
the following characters are used to denote the majors:
I: Information Management
C: Computer Science
A: Accounting

Here is a sample run:

Enter two characters: I1 ↵Enter
Information Management Freshman

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,