Question: using python Worksheet 4 To pass this werde you must demonstrate that you weable to do the following in solving the problem EXPLAIN HOW YOUR
Worksheet 4 To pass this werde you must demonstrate that you weable to do the following in solving the problem EXPLAIN HOW YOUR PROGRAM WORKS Wie a program that correctly uses while loop Include simple comments at least the actual author's name and date When your program works explain to a student, tout it and packit ticks withebos, you are having problems or don't understand the requirements, ask for help GRADING Your program will be marked taking into account the next boxes The program runs comedy. [10 ml The program sopanking the user if a negative number is entered 20 Opis EXACTLY the rigting reread the above destin and make sure you don't miss anything) 10 mars There are comments in the code to understand what the program does 20 marta Late Trains Write a program that is to be used to count the number of times trains relate departing from a particular station. It should use a while loop to repeatedly ask for the user to give the number of minutes late that the train that just departed was it should stop asking when any negative number is entered should then give the number of trains that were on timo (those that were no minutes late) out of the total and the number of minutes the worst train was late, For example, one run might be as follow How many intestine was the train? 2 How many minutes late was the train? How many inwes lule was the train? How many minute wie was the in? 13 How more late was the train? How many minutes late was the vin? How many minutes late was the train 7.1 3 out of trai were on ime. The worst train was 13 minutes late
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
