- 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.

3rd Feb 2021, 7:39 AM
Faisal Awad
Faisal Awad - avatar
5 Answers
+ 2
Your try?
3rd Feb 2021, 7:45 AM
Abhay
Abhay - avatar
+ 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!
3rd Feb 2021, 7:58 AM
noteve
noteve - avatar
0
i don’t know it
3rd Feb 2021, 7:46 AM
Faisal Awad
Faisal Awad - avatar
- 4
MrDevEzeoke i have quiz so i need it now !!
3rd Feb 2021, 7:49 AM
Faisal Awad
Faisal Awad - avatar