Exam
Exam
Solution: Factorial
•Read the taste score, presentation score, and freshness score from the user.
•Determine rating:
•If the average score is greater than or equal to 90, set the rating to "Outstanding".
•Otherwise, if the average score is greater than or equal to 75, set the rating to "A+".
•Otherwise, set the rating to "A".
•Output rating:
Steps:
Initialize sum: Set a variable sum to 0.
Iterate:
•While number is not 0: