Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This need to be done in C# programming language Your instructor runs a lot of marathons. Write a program to allow him to find his

This need to be done in C# programming language

Your instructor runs a lot of marathons. Write a program to allow him to find his fastest, slowest and average time of up to 10 races.

Your program should ask for times for each race in hours, minutes and seconds. After 10 races have been entered or the user has typed 1 (to indicate the end of input) you will provide the following output:

Race 1: {time}

Race 2: {time} **FASTEST**

....

....

Race {n1}: {time} **SLOWEST**

Race {n}: {time}

Average time: {time}

You will need to store the input in an array so that you can output them at the end. Obviously, the words FASTEST and SLOWEST should be on the correct line. You may not use any built-in functions on the arrays to calculate the fastest, slowest, and average. Average should be rounded to the closest second.

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

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

What was the first HR error to be made?

Answered: 1 week ago

Question

1. Who should participate and how will participants be recruited?

Answered: 1 week ago