JAVA 프로그래밍

문제

점수에 따라 다른 메시지를 출력하는 문제입니다 이를 해결하는 프로그램의 다음 실행상태에 대해 빈칸을 채우세요 

프로그램의 실행순서 및 실행상태

1  public static void main( String[] args ) {  

2   int score = scan.nextInt();
0점 ~ 100점 사이의 점수를 입력하세요: 85
                 main()
scan  (Scanner) 
 score

3   switch ( score / 10 ) {

4    case 10:   

5    case 9:        

7    case 8:          

8     System.out.print( "끝내주게 " );
끝내주게 

10     System.out.print( "잘 " );

12     System.out.print( "했다" );
했다

13  }


프로그램 코드

	import java.util.Scanner;
	 
	public class ScoreMessage
	{
1		public static void main( String[] args ) { 	
			Scanner scan = new Scanner( System.in );
			System.out.print( "0점 ~ 100점 사이의 점수를 입력하세요: " );
2			int score = scan.nextInt();
	
3			switch ( score / 10 ) {
4				case 10:			
5				case 9:								
6					System.out.print( "와! " );
7				case 8:										
8					System.out.print( "끝내주게 " );
9				case 7:									
10					System.out.print( "잘 " );
11				default:								
12					System.out.print( "했다" );
			}
			scan.close();
13		}
	}