Assignment
University
University of ReginaCourse
Computer Science (UR)Pages
1
Academic year
2023
priyankavaiya07
Views
0
p {margin: 0; padding: 0;} .ft00{font-size:21px;font-family:Caladea;color:#000000;} .ft01{font-size:16px;font-family:Carlito;color:#000000;} .ft02{font-size:21px;line-height:27px;font-family:Caladea;color:#000000;} Q3. If you run a 10 kilometre race in 42 minutes 42 seconds, what is your average pace(time per mile in minutes and seconds)? What is your average speed in miles per hour? dis=int(input("ENter Distance of race: ")) print("Enter time here:") x=int(input("Enter minutes here:")) y=int(input("Enter seconds here:")) z=int((x*60)+y) w=int(x+(y/60)) k = w/60 m = (dis/1.61) print("Your average pace minutes per miles is:", w/m) print("Your average pace seconds per miles is:", z/m) print("Your average speed mile per hours is:", (m/k))
Calculating Average Pace and Speed in a 10km Race
Please or to post comments