-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject4.java
More file actions
26 lines (23 loc) · 807 Bytes
/
Project4.java
File metadata and controls
26 lines (23 loc) · 807 Bytes
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
import java.util.Scanner;
public class Project4 {
public static void main(String[] args){
Scanner sc= new Scanner(System.in);
System.out.println("Enter the Good Ratings of the Movie:");
int rating= sc.nextInt();
if (rating<5000){
System.out.println("This is a 1.5 Star Movie");
}
else if (rating>=5000 && rating<25000){
System.out.println("This is a 2.5 Star Movie");
}
else if (rating>=25000 && rating<45000){
System.out.println("This is a 3.5 Star Movie");
}
else if (rating>=45000 && rating<70000){
System.out.println("This is a 4 Star Movie");
}
else if (rating>=75000){
System.out.println("This is a 5 Star Movie");
}
}
}