![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 03.03.2020 06:05 baches
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’.
Here are three sample runs:
Sample 1:
Enter two characters: i3
Information Technology and Systems
Junior
Sample 2:
Enter two characters: B5
Biology
Invalid year status
Sample 3:
Enter two characters: t2
Invalid major
Sophomore
What to deliver?
Your .java file including:
1. (Code: 5 points, Comments: 3 points) Your code with other appropriate comments.
2. (2 points) Four sample runs with the following four input:
(1) i3
(2) T2
(3) c2
(4) F0
Note that you need to run your program 4 times. Each time you run it, copy and paste the program output to the top of your program. After you finished these 4 runs, comment out the output you pasted so that you program would continue to run without any issue.
![ansver](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 21:30
After you clean an engine with hot water spray, it seems to stall; when it doesn't stall, it's idling noisily. technician a says to check for loose bolts on the flex plate near the torque converter. technician b says to wipe down the spark plug wires and the distributor cap. who is correct? a. technician a b. both technicians a and b c. technician b
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 22:30
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
![question](/tpl/images/cats/informatica.png)
You know the right answer?
Write a program that prompts the user to enter two characters and display the corresponding major an...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 08.04.2020 17:28
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 08.04.2020 17:28
![question](/tpl/images/cats/en.png)
English, 08.04.2020 17:28
![question](/tpl/images/cats/himiya.png)
Chemistry, 08.04.2020 17:28
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/mkx.png)
![question](/tpl/images/cats/geografiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 08.04.2020 17:28
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 08.04.2020 17:29
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/istoriya.png)
History, 08.04.2020 17:29
![question](/tpl/images/cats/en.png)