Write program that performs following two tasks: 1. Ask a user to enter a score between 0 and 100 and your program shows the letter grade based on the score user entered. A: 90 - 100. B: 80 -89. C: 70 - 79. D: 60 - 69. F: 0 - 59
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
*Using Selection Statements* C++
Write program that performs following two tasks:
1. Ask a user to enter a score between 0 and 100 and your program shows the letter grade based on the score user entered.
A: 90 - 100. B: 80 -89. C: 70 - 79. D: 60 - 69. F: 0 - 59
2. Ask a user to enter 6 integers and save them in 6 different variables. Re-arrange the values of the variables in ascending order.
Note - As per our guidelines we are supposed to answer only one question. Kindly repost other questions as separate questions.
Here I have first of all asked the user to enter the number.
Then I have used the if-else block to find the correct range of numbers and assigned the grade accordingly.
At last, I have printed the grade as the output.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images