![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 14.12.2019 00:31 trinityscute81
/* 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 chracters are used to denote the majors: m: mathematics c: computer science i: information technology*/import java. util. scanner; public class exercise_04_18{ public static void main(string[] args) { scanner in = new scanner(system. in); system. out. print("enter two characters: "); string status = in. next(); char major = character. touppercase(status. charat(0)); char year = status. charat(1); string coursename = ""; string yearname = ""; if (major == 'm' || major == 'i' || major == 'c') { switch(major) { case 'm': coursename = "mathematics"; break; case 'c': coursename = "computer science"; break; case 'i': coursename = "information technology"; break; default: break; } switch(year) { case '1': yearname = "freshman"; break; case '2': yearname = "sophmore"; break; case '3': yearname = "junior"; break; case '4': yearname = "senior"; break; default: break; } system. out. printf("%s %s%n", coursename, yearname); } else{ system. out. printf("invalid input.%n"); } }}
![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, 23.06.2019 11:00
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 16:30
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 23:00
Computer programming is one type of what career
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
You know the right answer?
/* write a program that prompts the user to enter two characters and displays the major and status r...
Questions
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 16.07.2019 09:30
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 16.07.2019 09:30
![question](/tpl/images/cats/geografiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 16.07.2019 09:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/istoriya.png)
History, 16.07.2019 09:30
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 16.07.2019 09:30
![question](/tpl/images/cats/ekonomika.png)
Business, 16.07.2019 09:30
![question](/tpl/images/cats/mat.png)
Mathematics, 16.07.2019 09:30
![question](/tpl/images/cats/en.png)
English, 16.07.2019 09:30
![question](/tpl/images/cats/istoriya.png)
History, 16.07.2019 09:30
![question](/tpl/images/cats/biologiya.png)
Biology, 16.07.2019 09:30
![question](/tpl/images/cats/mat.png)
Mathematics, 16.07.2019 09:30
![question](/tpl/images/cats/mat.png)
Mathematics, 16.07.2019 09:30