Question
Please only help me do the median and mode, i just want the median and mode and how to Sort the numbers in ascending or
Please only help me do the median and mode, i just want the median and mode and how to Sort the numbers in ascending or descending order and then find the median and mode values. Best use the bubble sort to do it. Thank you very much !!!!!!!!!!!!!!!
- ask the user to enter five (5) test scores
- if any of the scores are less than zero (<0) or greater than 100 (>100), print an error message and exit the program
- calculate the average of the five test scores
- report the data entered by the user
- report the average (rounded to two decimal places)
- use cout << fixed << setprecision (2)
- report the letter grade that should be assigned using the following scale
>= 89.5 A
79.5 89.49 B
69.5 79.49 C
59.5 69.49 D
<= 59.49 F
Also report:
- min
- max
- median
- mode
Following is the output number
lease enter 5 test scores: 88.00 92.00 95.00 100.00 88.00 Average = 92.60 Grade = A Min = 88.00 Max = 100.00 Median = 92.00 Mode = 88.00
Please enter 5 test scores: 88.00 0.00 75.00 75.00 88.00 Average = 65.20 Grade = D Min = 0.00 Max = 88.00 Median = 75.00 Mode = 75.00 88.00
Please enter 5 test scores: Error: Bad Data
Please enter 5 test scores: 84.00 83.00 82.00 82.00 81.00 Average = 82.40 Grade = B Min = 81.00 Max = 84.00 Median = 82.00 Mode = 82.00
Please enter 5 test scores: 8.00 8.00 8.00 8.00 8.00 Average = 8.00 Grade = F Min = 8.00 Max = 8.00 Median = 8.00 Mode = 8.00
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