In gymnastics or diving competition

Assignment Help Basic Computer Science
Reference no: EM13900281

In gymnastics or diving competition,each contestant's score is calculated by dropping the lowest and higher scores and then adding the remaining scores. Write a complete C++ program that allows the user to enter eight judges' scores and output the total scores received by the contestant( A judge awards points between 1 and 10, with 1 being the lowest and 10 being the highest.)

For example, if the scores are 9.2,9.3,9.0,9.9,9.5,9.5,9.6 and 9.8, the contestant receives a total score of 56.9 points (9.0 and 9.9 are deleted). That means only 6 scores will be used to calculate the total points.

your program:

1.read the contestants' data (i.e the judges' scores) from input file and print them onto an output file

2.compute the total scores by dropping the lowest and highest scores, and adding the remaining 6 scores

3.print out the list of total scores onto an output file

4.sort the scores obtained in (3)

5.print the sorted list to the same output file (in descending order according to the total points)

 

 

Reference no: EM13900281

Questions Cloud

How outcome of hypothesis test and confidence interval : Are the data sufficient to conclude that children with a history of childcare show significantly more behavioral problems than the average kindergarten child? Use a one-tailed test with a = .01.
Federal strategic plan to prevent and end homelessness : What does this statement mean? What is the "Federal Strategic Plan to Prevent and End Homelessness in 2010"? and is this plan working?
Determine the book value of the two fixed assets on december : Record the adjusting journal entry on December 31 to record the depreciation expense for the two fixed assets. Determine the book value of the two fixed assets on December 31.
How would you specify this protection scheme in unix : Option 1: Write a 1- to 2-page paper that discusses the following scenario: Consider a system that supports 5,000 users. Suppose you want to allow 4,990 of those users to be able to access one file. How would you specify this protection scheme in UNI..
In gymnastics or diving competition : In gymnastics or diving competition,each contestant's score is calculated by dropping the lowest and higher scores and then adding the remaining scores. Write a complete C++ program that allows the user to enter eight judges' scores and output the to..
Respond to given discussion : Respond to discussion- Respond in one or more of the following ways: Ask a probing question. Share an insight from having read your colleague's posting. Offer and support an opinion. Validate an idea with your own experience
What can we learn about the microsociology of japan : What can we learn about the microsociology of Japan from this story?
Application uses both warehouse and operational data : Field sales people can have a sales database on their smart phones. The sales database contains sensitive, competitive information. Using their smart phones, the salespeople can query the data, update it, delete it, and place orders. This application..
Explain why the f-ratio is expected to be near 1.00 : Explain why the F-ratio is expected to be near 1.00 when the null hypothesis is true.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Characteristics of professionals collapse

How might definitions of plagiarism vary across cultures and Characteristics of professionals Collapse

  Write an application for the summerdale condo sales

Write an application for the Summerdale Condo Sales office; the program determines the price of a condominium. Ask the user to choose 1 for park view, 2 for golf course view, or 3 for lake view. The output is the name of the chosen view as well as th..

  How will sensitive information be handled

How will sensitive information be handled?

  First argument of the function

Implement the given function above. The first argument of the function is a vector of "v" integers and the second argument is an integer "k". The function returns the number of times "k" occurs in "v".

  Describe the general tree adt

Describe the General Tree ADT. Discuss different ways for implementing general trees, and compare them in terms of the efficiency of search operations.

  File sharing program

Explain what your process was and how the experiment went. Were you successful? What did you learn from the experience ?Experiment choice #1:  File Sharing Program Download a current version a file sharing program such as BitTorrent and use it to dow..

  Evaluate situation if you lack behind schedule on project

Evaluate a situation where you have fallen behind schedule on a project. How could more effective scheduling have allowed the project to stay on track?

  Compute and display the average age

Create a Class StudentType Create a StudentType array of 50 students Set the age of the first student to 10, second student to 11, and so on until the last student to 59. Compute and display the average age of all 50 students with the help of a fu..

  Use the raptor to complete the problem

Use the Raptor to complete the problem, Input names of students from the user, terminated by "ZZZ", 0, 0, 0, and create a data file grades with records of the following form: student (string), test (integer), test 2 (integer), test 3 (integer)

  Describe the experiments needed to evaluate the design

Describe the experiments needed to evaluate the design alternatives. Give both a full factorial design and simple design. These experiments could be conducted on a simulation model or system prototype.

  What kind of watermarking mechanism

What kind of watermarking mechanism can you propose to protect an image copyright?

  Methods-majority of target audience can play applications

What are some methods that we can guarantee that majority of target audience can play applications?

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