Computer program that inputs a degree

Assignment Help Basic Computer Science
Reference no: EM13163431

Problem: In the sport of diving, seven judges award a score between 0 and 10, where each score may be a floating-point value. The highest and lowest scores are thrown out and the remaining scores are added together. The sum is then multiplied by the degree of difficulty for that dive. The degree of difficulty ranges from 1.2 to 3.8 points. The total is then multiplied by 0.6 to determine the diver's score.

Write a computer program that inputs a degree of difficulty and seven judges' scores, and outputs the overall score for that dive. The program should ensure that all inputs are within the allowable data ranges (i.e. error-check the user input the degree of difficulty and all of the judges' scores).

The program must use a single-subscripted array to store the judges' scores.

Reference no: EM13163431

Questions Cloud

Project will be a simple, working program : This programming project will be a simple, working program, using Python language, which utilizes a good design process and includes:Sequential, selection, and repetitive programming statements as well as,At least one function call.
Implement a standard sorted linked list class : Write C++ Program:Implement a standard SORTED linked list class. Be sure to include constructor/copy constructor, destructor, and assignment operator overload.
Compute the zero-point energy of a harmonic : Calculate the zero-point energy of a harmonic oscillator consisting of a rigid CO molecule adsorbed to a metal surface by a bond of force
State what is the heat of vaporization of ethanol : The heat of fusion, ?Hfus, of ethanol (C2H5OH) is 4.9 kJ/mol. The heat of sublimation of ethanol, for the process C2H5OH(s) ? C2H5OH(g) , is 43.5 kJ/mol. What is the heat of vaporization of ethanol?
Computer program that inputs a degree : Write a computer program that inputs a degree of difficulty and seven judges' scores, and outputs the overall score for that dive. The program should ensure that all inputs are within the allowable data ranges
Add the correct code to fill the matrix array with the value : Use the file below code and add the correct code to fill the matr2 array with the values that make it the matrix transpose of matr1. There are many examples on the Internet that show how to do this in C++ and what it should look like when it is corre..
Compute the downward pressure in pascals due to gravity : Calculate the downward pressure in pascals due to gravity exerted by the bottom face of a 3.25kg cube of iron that is 7.50 cm
Calculate the concentration of sodium ion in a solution : Calculate the concentration of sodium ion in a solution made by diluting 350.0 mL of 3.00 M sodium carbonate to a total volume of 2.00 L.
Determine molar mass for this compound and oxidation state : Determine molar mass for this compound and oxidation state of lead in it. write the oxide formula of lead for the corresponding oxidation state

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Give upper bound on number of training

Give an upper bound on the number of training examples sufficient to assure with 90% confidence that the learned perceptron will have true error of at most 5%. Does this bound seem realistic?

  Some time on a new parallel computer

You are given some time on a new parallel computer. You run a program which parallelizes perfectly during certain phases, but which must run serially during others.

  Executing critical section in mutual exclusion protocol

In Lamport's mutual exclusion protocol, if process i is implementing critical section.

  Explaining physical material on which computer keeps data

Storage is the physical material on which a computer keeps data, instructions, and information?

  Describing online services provided by selected companies

Identify and briefly describe the online services provided by the selected companies (e.g. online catalogue search, online information search.

  Recognize and explain six basic computer operations

Recognize the six basic computer operations. Describe each operation's role in computer program and indicate whether it is part of program's input component,

  Select a current trend in area of telecommunications

Research and select a current trend in the area of telecommunications. Find the topic and send to instructor for approval. Then, prepare a 10-15 page paper in Microsoft Word.

  1.what is the value of the following instruction?

1.What is the value of the following instruction? mov al,01101011b shr al,22.What is the two's complement of the binary number 11010000?3.Which statement defines an array local variable consisting 40 signed words?

  How will decision meet accessibility guidelines

Knowing that this violates Redundancy Principle, but wanting to accommodate employees with disabilities, what would you suggest instead? How would your decision meet accessibility guidelines?

  Technology aided in the evolution of instrument

Identify one musical instrument that has evolved over the centuries (e.g., the piano or guitar) so that you can enlighten us about the evolution of this instrument.

  Computing downtime in telephone per year

Telephone system has an availability of 99.999 percent. How much downtime is that per year? Express your answer in a way that is easy for someone to understand.

  What are the benefits of using tangible interfaces

What are the benefits of using tangible interfaces compared with other interfaces like GUI, pen-based or gesture?

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