-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject4_2.java
More file actions
21 lines (19 loc) · 783 Bytes
/
Project4_2.java
File metadata and controls
21 lines (19 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.util.Scanner;
public class Project4_2 {
public static void main(String[] args){
Scanner sc= new Scanner(System.in);
System.out.println("Enter the Good Ratings of the Movie: (0-5000: 1 | 5000-25000: 2 | 25000-45000: 3 | 45000-70000: 4 | 70000+ : 5)");
int rating= sc.nextInt();
switch(rating){
case 1: System.out.println("This is a 1.5 Star Movie");
break;
case 2: System.out.println("This is a 2.5 Star Movie");
break;
case 3: System.out.println("This is a 3.5 Star Movie");
break;
case 4: System.out.println("This is a 4 Star Movie");
break;
case 5: System.out.println("This is a 5 Star Movie");
break;}
}
}