Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

2. What is the business value of security and control?

Answered: 1 week ago