티스토리 뷰

DESCRIPTION

전공과 학년을 의미하는 두개의 문자를 입력으로 받아 전공과 학년의 완벽한 이름을 출력하는 프로그램을 작성하세요. 첫번째 문자는 전공을 나타내며 아래 보이는 목록중 하나입니다. 두번째 문자는 학년을 나타내며 1부터 차례대로 Freshman, Sophomore, Junior, Senior로 표현하면 됩니다.

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
INPUT

* Line 1 : 문자x2

 

OUTPUT

* Line 1 : 전공과 학년을 공백으로 구분해 출력

 

SAMPLE INPUT
C3
SAMPLE OUTPUT
Computer Science Junior


'학교공부 > JAVA' 카테고리의 다른 글

[JAVA] 두명의 하이스코어  (0) 2017.07.26
[JAVA] 세개의 도시명을 정렬  (0) 2017.07.26
[JAVA] 10진수를 16진수로  (0) 2017.07.26
[JAVA] 기하: 정다각형의 넓이  (0) 2017.07.26
[JAVA] 기하: 대권거리  (0) 2017.07.26
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/06   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함