-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGrading_Method.cpp
More file actions
39 lines (27 loc) · 891 Bytes
/
Grading_Method.cpp
File metadata and controls
39 lines (27 loc) · 891 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
39
#include<iostream>
using namespace std;
int main()
{
int t, i, v;
cin >> t;
for (i = 1; i <= t; i++)
{
cin >> v;
if ( v>= 90 && v<= 100 )
cout << "Student " << i << ": " << "A+" << endl;
else if ( v>= 80 && v<= 89)
cout << "Student " << i << ": " << "A" << endl;
else if ( v>= 70 && v<= 79)
cout << "Student " << i << ": " << "A-" << endl;
else if ( v>= 60 && v<= 69)
cout << "Student " << i << ": " << "B+" << endl;
else if ( v>= 50 && v<=59)
cout << "Student " << i << ": " << "B-" << endl;
else if ( v>= 40 && v<= 49)
cout << "Student " << i << ": " << "C" << endl;
else if ( v>= 35 && v<= 39)
cout << "Student " << i << ": " << "D" << endl;
else if ( v>= 0 && v<= 34)
cout << "Student " << i << ": " << "F" << endl;
}
}