forked from bliblidotcom/training-java-future-program
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScoring.java
More file actions
38 lines (34 loc) · 780 Bytes
/
Copy pathScoring.java
File metadata and controls
38 lines (34 loc) · 780 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
26
27
28
29
30
31
32
33
34
35
36
37
38
import java.util.Scanner;
public class Scoring {
public static void main(String[] args) {
if(args.length < 1)
{}
else{
int score = Integer.parseInt(args[0]);
scoring(score);
}
}
public static void scoring(int score)
{
if(score > 80)
{
System.out.println(" Score is A");
}
else if(score > 60)
{
System.out.println(" Score is B");
}
else if(score > 40)
{
System.out.println(" Score is C");
}
else if(score > 20)
{
System.out.println(" Score is D");
}
else
{
System.out.println(" Score is E");
}
}
}