Answered step by step
Verified Expert Solution
Question
1 Approved Answer
help with this algorithm and programming problem HAS TO BE SOLVED IN THE PSEINT PROGRAM. The official times recorded (in minutes) for 7 runners of
help with this algorithm and programming problem HAS TO BE SOLVED IN THE PSEINT PROGRAM.
The official times recorded (in minutes) for 7 runners of the 5-kilometer race Anhuac-Mayab 2020 were as follows:
Corridor 1
23
Corridor 2
36
Corridor 3
19
Corridor 4
22
Corridor 5
28
Corridor 6
25
Corridor 7
31
Develop an algorithm that allows the user to enter these times and store them in a one-dimensional array (10 points). Subsequently, the algorithm must calculate and display the following:
The average time taken by runners to complete the race (10 points).
How many runners finished the race in under 25 minutes? (15 points).
What was the longest time recorded by a runner and what was his average pace per kilometer (minutes x km)? Taking into account that the average pace is calculated by dividing the official time (in minutes) by the number of kilometers traveled (consider decimals) (15 points).
Note: The use of cycles is essential for travel and operations with the arrangement.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started