You've been hired by Sochi Sports Speed Skating (S4) to write 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 other numbers. 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. Format the average time to three decimal places.
1
Expert's answer
2020-04-24T11:35:39-0400
Dear austin , your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment