Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ question, please answer this in the format of a beginner so it can be easier to understand. Explain what you are doing clearly! Thank

C++ question, please answer this in the format of a beginner so it can be easier to understand.

Explain what you are doing clearly! Thank you

image text in transcribed

image text in transcribed

[20 points] You've been hired by Sochi Sports Speed Skating (S4 to write 3) software to calculate the average time of a random number of skaters in the Short Track Speed Skating event Write a Visual C++ program to prompt for and read the times of skaters, one at a time. When the user enters -1, that signals the end of the list (it's the sentinel Assume the user will only enter positive real numbers. After the user enters-1, check whether they entered any othernumbers. If they only entered -1 (the sentinel you cannot calculate an average since the number of skaters is zero and you would be dividing by zero. After the user enters -1, output the following, one per line, with the label in one column and the value in another column Fommat the average time to three decimal places. Skater times entered. Either the average time or a message that the average cannot be calculated. Here are Olympic records for the six individual events in short track speed skating Men's 500m, Charles Hameln, Canada, Set: 2010, Vancouver, Time: 40.777 Men's 1,000m, Lee Jung-Su, South Korea, Set: 2010, Vancouver, Time: 1:23.747 Men's 1,500m, Lee Jung-Sue South Korea, Set: 2010, Vancouver, Time: 2:10.949 Women's 500m, Wang Meng, China, Set: 2010, Vancouver, Time: 42.985 Women's 1,000m, Zhou Yang, China, Set: 2010, Vancouver, Time: 1:29.049 Women's 1,500m, Zhou Yang, China, Set: 2010, Vancouver, Time: 2:16.993

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

More Books

Students also viewed these Databases questions