63 034
Assignments Done
99,1%
Successfully Done
In July 2018

Answer to Question #4464 in C# for diya

Question #4464
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
Expert's answer
#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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions