Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write a python program Problem 3 Filename: racepace.py . You and your friends have run a virtual race, the kind where you pay money

image text in transcribed

please write a python program

Problem 3 Filename: racepace.py . You and your friends have run a virtual race, the kind where you pay money to run by yourself in your own neighborhood (but then you get a t-shirt!). Before you can upload your stats to the race website, you need to do some conversions, which is a perfect thing to write a program for. Prompt the user for their race distance (in kilometers) and finish time (in hours & minutes), and then figure out two things: 1. Miles they ran, converted from kilometers. 2. What was the average pace per mile? For full credit under the documentation category, write two test cases in a comment at the top of your file, like this but with your own examples. Do this before you start coding -- that way you know if your program works! # Input: 10k race, 1 hour, 1 minute # Output: 6.21 miles, 9:49 pace # Input: 25k race, 2 hours, 13 minutes # Output: 15.53 miles, 8:34 pace You can assume that the user gives you good input -- all of the data are non-negative. The distance is a float and is always greater than zero. Hours and minutes are both whole numbers, and either one may be zero, but the total time is never zero. Use 1.61 kilometers-per-mile as the conversion. Here's an example of what happens when I run my program (your text/formatting doesn't need to look exactly like ours though): How many k's did you run? 10 How many hours did it take? 1 And how many minutes? 1 Congrats on your race! Here are your stats! 6.21 miles 9:49 pace

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

Whats My Comfort with Change?

Answered: 1 week ago

Question

Explain the Neolithic age compared to the paleolithic age ?

Answered: 1 week ago

Question

What is loss of bone density and strength as ?

Answered: 1 week ago