Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# codes please... Scenario: You are in charge of a mens high jump competition and you have data on each prospective competitor. For each competitor

C# codes please...

Scenario:

You are in charge of a mens high jump competition and you have data on each prospective competitor. For each competitor you must enter into your program, the jumpers number (an integer), followed by his best 3 jumps (floating point numbers denoting height in metres). A jumper number of 0 indicates the end of the data. A jumper qualifies for the competition if the average of his 3 jumps is at least 1.5 metres.

Write a program to read the data and print, for each jumper, his number, his average jump (to 2 decimal places) and whether or not he qualifies. In addition, after all data entry is completed, print

  • The number of jumpers who qualify and the number who do not qualify;
  • The jumper with the highest average jump (ignore the possibility of a tie).

Sample input and output for keyboard entry:

Please enter a competitor number (0 to quit): 546

Please enter 3 jump heights: 1.5 2.1 1.2

546 1.60 qualifies

Please enter a competitor number (0 to quit): 984

Please enter 3 jump heights: 1.7 1.2 0.78

984 1.23 does not qualify

Again Please C# Codes...

Thanks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions