-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNotlandirma.java
76 lines (43 loc) · 2.08 KB
/
Notlandirma.java
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package HomeWorks;
import java.util.Scanner;
public class Notlandirma {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("Öğrenci sayısını girin :");
int number = input.nextInt();
input.nextLine();
String student[] = new String[number];
int midtermnote[]=new int[number];
int finalnot[]=new int[number];
int avarage[]=new int[number];
for (int i=0 ;i<number ;i++) {
System.out.println("Öğrenci : "+ (i+1));
System.out.print("Öğrenci adı giriniz: ");
student[i] = input.nextLine();
System.out.print("Vize not :");
midtermnote[i] = input.nextInt();
System.out.print("Final not :");
finalnot[i] = input.nextInt();
input.nextLine();
avarage[i] = (midtermnote[i] * 4 / 10) + (finalnot[i] * 6 / 10);
if (avarage[i] >= 90) {
System.out.println("Genel Not :" + avarage[i] + "- AA");
} else if (80 <= avarage[i] && avarage[i] <= 89) {
System.out.println("Genel Not :" + avarage[i] + "- BA");
} else if (70 <= avarage[i] && avarage[i] <= 79) {
System.out.println("Genel Not :" + avarage[i] + "- BB");
} else if (60 <= avarage[i] && avarage[i] <= 69) {
System.out.println("Genel Not :" + avarage[i] + "- CB");
} else if (50 <= avarage[i] && avarage[i] <= 59) {
System.out.println("Genel Not :" + avarage[i] + "- CC");
} else if (40 <= avarage[i] && avarage[i] <= 49) {
System.out.println("Genel Not :" + avarage[i] + "- DC");
} else if (30 <= avarage[i] && avarage[i] <= 39) {
System.out.println("Genel Not :" + avarage[i] + "- DD");
} else {
System.out.println("Genel Not :" + avarage[i] + "- FF");
}
System.out.println();
}
}
}