-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvize_final_but.cpp
50 lines (37 loc) · 1.17 KB
/
vize_final_but.cpp
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
#include <iostream>
using namespace std;
int main() {
setlocale(LC_ALL, "Turkish");
int vize1, vize2, final, vizeoran, finaloran, tamnot, butunleme, butunlemeoran, butnot;
double minfinal;
cout << "1. Vize Notu: ";
cin >> vize1;
cout << "2. Vize Notu: ";
cin >> vize2;
vizeoran = ((vize1 + vize2) / 2) * 0.3;
minfinal = (60 - vizeoran) / 0.7;
cout << "Bu dersten geçmek için finalden en az almanız gereken not: " << round(minfinal) << endl;
cout << "Final Notu: ";
cin >> final;
finaloran = final * 0.7;
tamnot = finaloran + vizeoran;
if (tamnot >= 60) {
cout << "GEÇTİ" << endl;
};
if (tamnot < 60) {
cout << "BÜTÜNLEMEYE KALDI" << endl;
cout << "Bütünleme Notu: ";
cin >> butunleme;
vizeoran = ((vize1 + vize2) / 2) * 0.3;
butunlemeoran = butunleme * 0.7;
butnot = butunlemeoran + vizeoran;
if (butnot >= 60) {
cout << "GEÇTİ" << endl;
};
if (butnot < 60) {
cout << "BU DERSTEN KALDI" << endl;
};
};
system("PAUSE");
return 0;
}