Write a program to automate the scoring of dives

Assignment Help Programming Languages
Reference no: EM13703745

Question: The state diving commission wants to computerize the scoring at its diving competitions.

You need to write a program to automate the scoring of dives.

Requirements:

After each dive, the user will be prompted to enter the:

  • diver's name;
  • diver's city;
  • degree of difficulty (ranges from 1.00 to 1.67); and
  • scores from five judges (scores can range from 0 to 10).

If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered.

The program will then display the following information:

  • Diver's name
  • Diver's city
  • Dive final score: This is calculated by dropping the highest and lowest of the five judges' scores.

The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty.

The program will then prompt the user if she/he wants to process another dive. The user can type "Y" or "y" to continue, and "N" or "n" to quit.

Reference no: EM13703745

Questions Cloud

Write an assembly program in mips : Write an assembly program in MIPS that get the array size from the keyboard, then reads a list of integers from the keyboard and writes the sorted list in ascending order to the console screen.
Implement a logical right shifter register : The first one is how to implement a logical right shifter register using two different methods; R flip-flop and JK flip-flop in digital works.
How many edges are there in a tree with 57 vertices : How many edges are there in a tree with 57 vertices - How many internal vertices are there in a full binary tree of height 10?
Creating a part number : Write C++ program that asks a user to enter a part number to order. The rules for creating a part number are as follows:
Write a program to automate the scoring of dives : The state diving commission wants to computerize the scoring at its diving competitions.
Default local dns server for sending request : Design a program which will take the subsequent inputs at the command line - UDP may be used for communication and raw scokets and no libraries.
Calculate the enthalpy change per mole process : After 0.25 g of Mg is added to the mix and the temperature increases by .34 degrees making the solution25.34 degrees celsius. the reaction is Mg + 2HCl + ddH2O >>> MgCI2 + H2(g). calculate the enthalpy change per mole (1.00 g/mL) for this process.
The combination of sodium chlorite and acetic acid forms : Problem- The combination of sodium chlorite and acetic acid forms hypochlorous acid (HOCl). Draw the arrow pushing mechanism of your reaction, using HOCl as reagent.
Draw dashed lines : Write a class Lines containing a static method dashedLine to draw dashed lines, so it can write:

Reviews

Write a Review

Programming Languages Questions & Answers

  Tools assist novice programmer to generate code

Structured English and gave to a novice programmer who used it to create code? If not, what other tools could be used to assist the novice programmer to generate code?

  Give a pseudo-code description of a function

Give a pseudo-code description of a function that uses only D and Q (and no other variables or objects) and results in D storing the elements.

  Design interactive program using prewritten methods

Design an interactive program that does the following, using the prewritten methods whenever they are appropriate. Prompt the user for and read a library card number, which must be between 1000 and 9999.

  Program that produces the decompostion of integers

Give a program that produces the decompostion of integers between 0 and 121 using powers of 3(1, 3, 9, 27, 81) - play a particular role using any language

  Create a print stream object using dos

Create a PrintStream object using dos and assign the resulting reference to ps, a PrintStream variable that has already been declared.

  Program that prompts the user to input the dimensions

Amanda and Tyler opened a business that specializes in shipping liquids, such as milk, juice, and water, in cylinderical containers. The shipping charges depend on the amount of liquid in the container.

  Create logic for program to enter each household size

Create logic for a program that allows a user to enter each household size and find out the mean and median household size in Marengo.

  Write a program in q basic that accept student name

Write a program in Q basic that accept a student name,score obtained in 5 course and compute the average score of the student and my program must display the name of the student

  Write program to list all english-math and science teachers

Suppose that input consists of a file of teachers. You are told to write a program to list all English, math, and science teachers. Each teacher can teach only one subject.

  Develop two single dimension arrays-floating-point numbers

Develop two single dimension arrays which contain 10 floating-point numbers in each array. Develop third single dimension array to hold sum.

  Class to create and draw five squares

Now write applet DrawSquares that uses your Square class to design and draw 5 squares. This code must be very simple.

  Create class to include fields for length-width in inches

Create a class name Tape that includes fields for length and width in inches and properties for each field. Also include a ToString () method that returns a string constructed from the return value

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