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
Juli2301 [7.4K]
3 years ago
7

Write a program to determine the number of laps a jogger needs to jog on an indoor track based on the number of miles the jogger

wishes to jog. Assume that the track is 1/14 mile long. The program should prompt the user to enter the number of miles she wishes to jog, read this number, and then calculate and display the number of laps the jogger needs to jog to cover that mileage. You should assume that the number of miles entered will be a positive integer value.

Computers and Technology
1 answer:
Dovator [93]3 years ago
7 0

Answer:

Explanation:

def jog():

   miles = eval(input("Enter number of miles to jog: "))

   miles_total = miles

   track = 1/14

   n_laps = 1

   while (miles - 1/14)>0.0001:

       miles -= 1/14

       n_laps+=1

   print('jogger need to jog '+str(n_laps)+" laps to cover "+str(miles_total))

You might be interested in
What is a message called that is delivered by TCP? What is a message called that is delivered by UDP? At which layer do the two
Mrrafil [7]

Answer:

  • Transmission Control Protocol is a Transport Layer protocol.  
  • This protocol is connection oriented which means that a connection is set up before the data packets are transmitted between the source and destination host which is a very reliable way of data transmission.
  • The connection is established between the source and the destination, after this the data is transmitted between them and lastly the connection is ended or terminated after the data transmission.
  • The packet or a messages that is delivered by TCP is called segment.
  • Basically TCP divides the data into small parts or chunks which are called segments.
  • The segment has a header and data section.
  • The segment header is further divided into the following parts.
  • Source port (sending port), destination port (receiving port), sequence number which is allocated to the first byte in the segment so that if the segments at the destination are sent out of order then it will help to rearrange these segments, Acknowledgement Number is number that the acknowledgement number sender expects to receive, header length, control flags which are used to control connection set up, connection termination and flow control, window size that a sender is ready to receive, Checksum field enables error control, Urgent pointer which is used to refer to data that is urgently needed to reach the receiving phase as soon as possible.  
  • User Datagram Protocol (UDP) is a Transport Layer protocol and a part of Internet Protocol suite.
  • This protocol is connection-less which means there  is no need to establish a connection between source host and destination host prior to the transmission of data which is an unreliable data transmission way.
  • The message in UDP is called datagram .
  • Unlike TCP segments there is no need to consider the order in which datagrams are sent or received.
  • Datagram has a header part which contains routing information a data section which shows the data to be transmitted.
  • Header has source port, destination port, checksum and length fields.
  • TCP and UDP protocols work in Transport Layer.
  • This layer is responsible for end to end delivery of data between source and destination hosts.
  • It ensures reliable data transmission and manages flow control and also ensures that packets reach in the right order in which they were sent.
5 0
3 years ago
Pls help I will thx and give points
azamat

Answer:

Desktop

Explanation:

A tablet and smartphone dont have enough storage like a desktop, so they would edit very efficiently

5 0
3 years ago
Read 2 more answers
Manually selecting an A,F point helps the camera to do what? focus on an off-center subject
Lemur [1.5K]

it would be b c and a or b for 3


7 0
3 years ago
It’s been six months since the disk crash at CSM Tech Publishing, and the owner is breathing a little easier because you install
Semmy [17]

Answer:

Storage Spaces

Explanation:

The feature that would best accommodate his needs would be the Storage Spaces feature that has been implemented in the Windows and Windows Server systems. This feature basically takes various hard drives and combines them together, this ultimately acts as copies of each other which protect the data of each one in the unfortunate case that one of the drives tends to fail. This feature also allows you to add more drives to the existing ones with very minimal effort without restricting configuration. Which would solve the needs that are needed in this scenario.

5 0
4 years ago
Oliver wants to send a report to his boss discussing the upcoming project. Which communication facility would he use to send a f
vladimir2022 [97]
I pretty sure email
5 0
4 years ago
Read 2 more answers
Other questions:
  • When Building a resume what would i put when it says field of study especially when your still going to high school?​
    13·1 answer
  • Whoevr answers this will be marked brainliest
    12·1 answer
  • 1. Perform the following Binary Additions 101101 + 10100 *
    13·2 answers
  • Can someone tell me a machine or invention that has at least 4 simple machines in it ?
    12·2 answers
  • HIPAA protects which of the following kinds of data?
    11·2 answers
  • Emilio is reviewing the data he collected from historical records about immigration in the united states. He decides to create a
    5·1 answer
  • Computer architecture:
    6·1 answer
  • Which of the following is a quick way to restore the arrow pointer after you have used it for drawing?
    5·1 answer
  • What is common for all machines​
    15·2 answers
  • What is wireless?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!