Question
Question 1: A program that asks the user to enter five test scores. The program should display a letter grade for each score and the
Question 1: A program that asks the user to enter five test scores. The program should display a letter grade for each score and the average test score. Design the following functions in the program:
calcAverageThis function should accept five test scores as arguments and return the average of the scores.
determineGradeThis function should accept a test score as an argument and return a letter grade for the score (as a String), based on the following grading scale:
Score Letter Grade
90-100 A
80-89 B
70-79 C
60-69 D
Below 60 F
Question 2:
In mathematics, the notation n! represents the factorial of the nonnegative integer n. The factorial of n is the product of all the nonnegative integers from 1 up through n. For example:
7!=1234567=5,040
and
4!=1234=24
Question 3: A program that asks the user to enter a nonnegative integer and then displays the factorial of that number.
Note: I need to A code with the output in C++ programming language.
Note: I have asked to have the code in black background.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started