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

  1. ask the user to enter five (5) test scores
  2. if any of the scores are less than zero (<0) or greater than 100 (>100), print an error message and exit the program
  3. calculate the average of the five test scores
  4. report the data entered by the user
  5. report the average (rounded to two decimal places)
    • use cout << fixed << setprecision (2)
  6. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!