- 1

I'm not able to handle this

(Student major and status) 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: M: Mathematics C: Computer Science I: Information Technology Here is a sample run: Enter two characters: M1 Output: Mathematics Freshman

30th Mar 2022, 5:29 PM
Emma Eugene
2 Respostas
+ 4
You can do this. Just try to sketch the code, save and share its link inside your post's Description. People help when they see you put in some efforts. https://www.sololearn.com/post/75089/?ref=app Use conditional if to check each character and match them with respective values. You can also use switch statement, if you have learned about it.
30th Mar 2022, 5:57 PM
Ipang
+ 1
Hey yeah, I'm a "people" 😀
30th Mar 2022, 8:49 PM
HungryTradie
HungryTradie - avatar