Write a program to calculate the outcome of a competition

Assignment Help Basic Computer Science
Reference no: EM13813114

In competitive diving, each diver makes three dives of varying degrees of difficulty. Nine judges score each dive from 0 through 10 in steps of 0.5. The total score is obtained by discarding the lowest and highest of the judges' scores, adding the remaining scores, and then multiplying the scores by the degree of difficulty. The divers take turns, and when the competition is finished, they are ranked according to score. Write a program to calculate the outcome of a competition,

using the following input and output specifications.

Input

1. Number of divers

2. Diver's name (ten characters), difficulty (float), and judges' ratings (nine floats)

3. There is a line of data for each diver for each dive. All the data for Dive I are grouped

together, then all for Dive 2, then all for Dive 3.

Output

1. A table that contains the following information:

Name Dive I Dive 2 Dive 3 Total

where Name is the diver's name; Dive 1, Dive 2, and Dive 3 are the total points received for a

single dive, as described above; and Total is the overall total.

Reference no: EM13813114

Questions Cloud

What is the expected return of the risky corp bond : Mr. Weiss just bought a zero-coupon bond issued by Risky Corp. for $870, with $1000 face value and one year to mature. He believes that the market will be in expansion with probability 0.9 and in recession with probability 0.1. In the event of expans..
Formulate a linear programming model : Formulate a linear programming model that can be used to determine the percentage that should be allocated to each investment idea.
Demonstrate an understanding of the performance : How the balanced scorecard is calculated. If you have questions on it, please do not email me, as the answer will be contained within these resources and it is crucial that you learn exactly how it works.
Create the overall meaning of the poem fire and ice : create the overall meaning of the poem "Fire and Ice" by Robert Frost. Choose one literal image and one bit of figurative language.
Write a program to calculate the outcome of a competition : The divers take turns, and when the competition is finished, they are ranked according to score. Write a program to calculate the outcome of a competition
Religious radicalization in central asia and the middle east : Religious radicalization in Central Asia and the Middle East
What is the message of the movie the great dictator : what is the message of the movie The Great Dictator? what is he trying to say? what is the medium, how does it impact the viewer? what s he trying to say? how does the medium m impact us?
Components of a software system can make : Explain why a high degree of coupling among components of a software system can make maintenance of the system dif?cult. Provide at least one example that supports your answer
Explain different roles that strategic thinking and planning : Explain the different roles that strategic thinking and strategic planning play in the strategic planning process

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How the game is played from start to finish

Conduct outside research on the game Yahtzee. You really want to better understand how the game is played and scored. Then, create a 1-2 page paper that explains the following in essay form:

  What are the advantages of that method and disadvantages

a company has two building that are 50 meters (roughly 50 yards) apart. Between the building is private land owned by the company. A large walk-through tunnel connects the two buildings.

  Use one supper class and two sub classes

Give a UML example illustrating aggregation. Include classes, fields, methods, instance fields, etc.Use one supper class and two sub classes.inlcude pseudo code for at least one method of each class l. Also explain the whole part relationship and ..

  Importance of chain of custody in case of computer forensics

Explain importance of chain of custody in the case of computer forensics. You may show your viewpoint by giving examples showing that "common beliefs".

  What are the primary tasks of a system administrator

what are the primary tasks of a system administrator? 2. What does each task accomplish

  Class named commission that includes two numeric variables

Create a class named Commission that includes two numeric variables: a sales figure and a commission rate. Also create two overloaded methods name computeCommission(). The first method takes two numeric arguments representing sales and rate, multi..

  Apply yen''s algorithm to find the shortest path from node 1

Apply Yen's alogithm to find the shortest paqth from node 1 to all

  Difference between the android vs. ios

Both Android and iOS are operating systems developed for a primary purpose to be used for mobile devices. While Android is developed by Google, iOS is developed by Apple.

  Create a program that functions as simple boolean calculator

Create a program that functions as a simple boolean calculator for 32-bit integers. It should display a menu that asks the user to make a selection from the following list.

  Pd3 this assignment consists of two 2 sections a design

this assignment consists of two 2 sections a design document and a revised gantt chart or project plan. you must submit

  Network administration architecture process improvement

Network Administration Architecture Process Improvement

  What is ntp and what are clock strata

 What is UTC and why is it used and what is NTP and what are "clock strata"?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd