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

  What problem is addressed by checksums

Suppose computers A, B, C, and D are connected to an ethernet cable, similar to the setup shown in lecture. Computer A begins transmitting a packet on the cable, but it collides with another transmission, so A stops transmitting. What does compute..

  Demonstrate applied knowledge of people

demonstrate applied knowledge of people

  How you configure an operating system interface with network

How do you configure an operating system to interface with a network

  Use c++ write program that to factorial the prompted integer

use C++ write program that to factorial the prompted integer in the output

  Which have user profiles that are available for transfer

Which have user profiles that are available for transfer?

  Determine whether replication would be the right approach.

You are a database administrator for your company. With the acquisition of SNHU Appliances, your database is running very slowly. Your management has asked you to look into options to optimize the database. You think replication might be a good solut..

  Which is the sort key

Revise the function selectionSort so that it sorts an array of C++ structures according to one int data member, which is the sort key. Repeat this exercise for an array of instances of a class.

  Whats the difference between public, private and protected

What's the difference between public, private and protected?

  Understanding of concept of protecting personal information

This assignment has two goals:  1) have students increase their understanding of the concept of Protecting Personal Information (PPI) and other ethical issues related to the use of information technology through research, and 2) learn to correctly..

  What is a uml diagram?

What is a UML diagram? What does it include? Why is it used? What would the UML diagram look like for our lab assignment? This is for computer programming

  How documents appear both on the screen and when printed

Changing options in the screen affects how documents appear both on the screen and when printed

  Analyze faster processor chip result increase in performance

Analyze the following statement: "Using the faster processor chip results in corresponding increase in performance of a computer even if main memory speed remains same."

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