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 big is block size used by the file system to read data

How big is the block size used by the file system to read data? Hint: use reads of varying sizes and plot the time it takes to do such reads. Also, be wary of prefetching effects that often kick in during sequential reads.

  Determine the range

then performs the following analysis on the numbers: Determine the average number Determine the maximum number Determine the range (maximum - minimum) Displays a histogram that shows the numbers in each five-unit range

  Discuss the pros and cons

An organization has a number of tools available when determining how best to address performance issues on their network. The organization can use subnetting or they can use segmentation.

  Explain how this application can be used

Explain how this application can be used to collect data from customers and employees to improve operational performance

  Categorize the point-of-sale system in supermarket

Categorize the following systems and explain your classification: A point-of-sale system in a supermarket, A system which sends out reminders that magazine subscriptions are due to be paid.

  Flowchart that asks the user to enter the amount

Draw a flowchart that asks the user to enter the amount that he or she has budgeted for a month. A loop should then prompt the user to enter each of his or her expenses for the month, and keep a running total. When the loop finishes, the program shou..

  Simple jquery question

Simple jQuery question

  Writing quality and formal structure of the paper

Writing Quality and formal structure of the paper

  Calculate the difference between two numbers

Create a template function that can be used to calculate the difference between two numbers. Make it able to use two integers, two floats, and an integer and a float.

  Find statistics of the given list of integers

You will be writing a homework using functions to get a list of integers from a user and then find statistics of the given list of integers. You are not allowed to use any built in functions for finding the calculations in this assignment.

  Find the least common multiple of the pairs of integers

Find the least common multiple (lcm) of the pairs of integers.

  Finding a negative cycle in the graph of o

1. Finding a negative cycle in the graph of O (NM) [TeX] 2. Finding Euler Euler path or cycle of O (M) 3. Checking on the a cyclic graph and finding the cycle of O (M) All of these algorithm should be well explained and worth showing.

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