- 1
what is the code for c++
Q3. Write a program so that it repeatedly determines a student's grade, the program will read three types of scores (quiz, mid-term, and final scores) and determine the grade based on the following rules: -if the average score >=90% and average score <101% =>grade=A -if the average score >= 70% and average score <90% -if the average score >=50% and average score <70% -if the average score <50% and average score >=D0 -Otherwise the program print out => " The score is out of range". The program using the logical operator (&&) and nested if else statements, the program will terminate if the user entered the letter 'n'. => grade=DB =>grade%3DC =>grade=F.
5 Answers
+ 2
Your try?
+ 2
[ HINTS ]
To get the average of each term, sum then divide by 3:
---> (first + mid + last) / 3
You have to use if-else if-else statements to determine the grade on the given range of average. You can use && operator.
For example if I want to determine if a number is between 5 and 10:
>> if (num > 5) && (num < 10) {
>> cout << "between 5 and 10";
>> }
This same goes to your problem. To summarize each requirement:
90 - 100 = Grade A
70 - 89 = Grade B
50 - 69 = Grade C
0 - 50 = Out of Range
Try to attempt the problem and share with us so we may help. Thanks!
0
i donât know it
- 4
MrDevEzeoke i have quiz so i need it now !!



