Answer to Question #4464 in C# for diya
write a program to calculate grade of given course
85-100 A
78-84 B+
72-78 B
66-71 C+
60-65 C
BELOW 60 FAIL
1
2011-10-11T08:32:46-0400
#include <iostream>
using namespace std;
void
main(void){
int points = 0;
cout << "Please, enter count of
points: ";
cin >> points;
cout << "Grade: ";
if
(points >= 85)
& cout << "A";
else if (points >= 78
&& points <= 84)
& cout << "B+";
else if
(points >= 72 && points <= 77)
& cout <<
"B";
else if (points >= 66 && points <= 71)
& cout
<< "C+";
else if (points >= 60 && points <=
65)
& cout << "C";
else if (points < 60)
&
cout << "FAIL";
cout << "\nInput 0 and press Enter
exit...";
cin >> points;
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C#
Comments
Leave a comment