1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
soldier1979 [14.2K]
3 years ago
12

) Write a program to calculate the time to run 5 miles, 10 miles, half marathon, and full marathon if you can run at a constant

speed. The distance of a half marathon is 13.1 miles and that of a full marathon is 26.2 miles. Report the time in the format of hours and minutes. Your program will prompt for your running speed (mph) as an integer.
Computers and Technology
1 answer:
Kamila [148]3 years ago
6 0

Answer:

def cal_time(distance, speed):

   time = distance / speed

   hour = str(time)[0]

   minutes = round(float(str(time)[1:]) * 60)

   print(f"The time taken to cover {distance}miles is {hour}hours, {minutes}minutes")

miles = [5, 10, 13.1, 26.2]

myspeed = int(input("Enter user speed: "))

for mile in miles:

   cal_time(mile, myspeed)

Explanation:

The python program prints out the time taken for a runner to cover the list of distances from 5 miles to a full marathon. The program prompts for the speed of the runner and calculates the time with the "cal_time" function.

You might be interested in
_____ is a predefined format used for text the can include multiple font formatting features
seraphim [82]
The correct answer is



style
8 0
3 years ago
Which of the following menu commands would you select to make a copy of an open file and rename it
egoroff_w [7]
The menu command that you would <span>select to make a copy of an open file and rename it is SaveAs. </span>
5 0
3 years ago
Read 2 more answers
Create a single line comment that says ""Print results to screen""
levacccp [35]

Answer:

//""Print results to screen""

Explanation:

In c,c++,java,javascript // is used for the single line comment.

syntax:- // comment.

Whatever text that is followed after // is commented means this line will not get executed by the compiler.

Comments are used to explain the code to other person who is working on the code or trying to understand that code.

6 0
3 years ago
​
mash [69]

Answer:

Hey mate......

Explanation:

This is ur answer....

<em>For many users, uploading files is quite a bit slower than downloading files. This is usually normal, because most high-speed Internet connections, including cable modems and DSL, are asymmetric — they are designed to provide much better speed for downloading than </em><em>uploading.</em>

Hope it helps!

Brainliest pls!

Follow me! ;)

5 0
3 years ago
Why is it unlikely that you will find the ip address 192.168.250.10 on the internet?
gayaneshka [121]
That IP address is either Internal, private or reserved
5 0
3 years ago
Other questions:
  • Which statement is an example of an opinion from an online source?
    14·2 answers
  • ____ are the device drivers that provide the interface to I/O hardware.
    9·1 answer
  • Consider the clipping of a line segment in two dimensions against a rectangular clipping window. Show that you require only the
    10·1 answer
  • Chevening is looking for individuals with strong professional relationship building skills, who will engage with the Chevening c
    15·1 answer
  • An application server is used to communicate between a Web server and an organization's back-end systems.
    6·1 answer
  • What kind of sampling does a quasi experiment use?
    11·1 answer
  • Fill in the blank
    15·1 answer
  • Write a program that accepts a whole number as
    5·1 answer
  • Read the following scenario:
    10·2 answers
  • Write an algorithm and flowchart to display H.C.F and L.C.M of given to numbers.​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!