forked from OOP-ADF/Task_1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndexPoint.java
More file actions
39 lines (30 loc) · 1.07 KB
/
IndexPoint.java
File metadata and controls
39 lines (30 loc) · 1.07 KB
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 No3 {
public static void main(String[] args) {
double mscore, escore, qscore, fscore;
Scanner score = new Scanner (System.in);
System.out.print("Input Mid-term Score : ");
mscore = score.nextFloat();
System.out.print("Input End-term Score : ");
escore = score.nextFloat ();
System.out.print("Input Quiz Score : ");
qscore = score.nextFloat ();
fscore = (0.35 * mscore + 0.40 * escore + 0.25 * qscore);
System.out.print("Your Final Score : "+ fscore);
if (fscore>=85 && fscore<=100){
System.out.println("Excellent");
}
else if(fscore>=75 && fscore<=84){
System.out.println("Very Good");
}
else if(fscore>=65 && fscore<=74){
System.out.println("Good");
}
else if (fscore>=50 && fscore<=64){
System.out.println("Accepted");
}
else{
System.out.println("Failed");
}
}
}