Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ In the sport of diving, seven judges award a score between 0 and 10, where each score may be a floating-point value. The highest

C++

In the sport of diving, seven judges award a score between 0 and 10, where each score may be a floating-point value. The highest and lowest scores are thrown out and the remaining scores are added together. The sum is then multiplied by the degree of difficulty for that dive. The degree of difficulty ranges from 1.2 to 3.8 points. The total is then multiplied by 0.6 to determine the divers score.

Write a computer program that inputs a degree of difficulty and seven judges scores and outputs the overall score for that dive. The program should ensure that all inputs are within the allowable data ranges by using do-while loops until the data is accepted.

Your program should have

a Welcome statement

a function to read in the degree of difficulty making sure it is in the proper range

a for loop to read in 7 judges score placing each score in an array making sure it is in the proper range

a for loop to identify the lowest scores index and the highest scores index

a for loop to sum the scores but ignoring the high and low score

a statement to multiply the sum by the degree of difficulty

a display of

Each score entered

The Highest score

The Lowest score

The Total score

A Closing statement

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

Database And Expert Systems Applications Dexa 2022 Workshops 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 In Computer And Information Science 33

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Alfred Taudes ,Atif Mashkoor ,Johannes Sametinger ,Jorge Martinez-Gil ,Florian Sobieczky ,Lukas Fischer ,Rudolf Ramler ,Maqbool Khan ,Gerald Czech

1st Edition

ISBN: 3031143426, 978-3031143427

More Books

Students also viewed these Databases questions