Write a program that prompts the user to enter two characters and display the corresponding major and year status. 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 (or i): Information Technology and Systems

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 "Biology" either user type ‘b’ or ‘B’.

Answer :

CPED

Answer:

Following is attached the images for source code and the result according to given question.

I hope it will help you a lot!

Explanation:

${teks-lihat-gambar} CPED
${teks-lihat-gambar} CPED
${teks-lihat-gambar} CPED

Other Questions