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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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