Question: Goal: Use mathematical expression and operator priority correctly Assignment: For the last week, TheTrainCompany has received complaints that most of their scheduled trips have accumulated

Goal: Use mathematical expression and operator priority correctly
Assignment: For the last week, TheTrainCompany has received complaints that most of their scheduled trips have accumulated significant delays. Since there were no reports of issues within the network or train speed, the investigation turned to the delays related to increased boarding time at each station.
Let the user input the delay in seconds accumulated in 5 consecutive stations and store these in integer variables d1,d2,dots,d5. Then, output the average delay.
Sample run:
Input delays: 5,10,12,3,6
The average delay was 8.2 seconds.
Goal: Use mathematical expression and operator

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!