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
postnew [5]
3 years ago
14

How far do you jog each morning? You prefer to jog in different locations each day and do not have a pedometer to measure your d

istance. Create an application to determine the distance jogged given the average number of strides ran during the fist minute, average number ran during the last minute, and the total minutes jogging. Design a modularized solution (with methods) to display the distance traveled. Pedometers measure the distance you run. However, you can also do a good estimate of the distance if you know your foot stride, how many strides you complete per minute, and the number of minutes you job. Foot stride is the distance covered by one average step length. Since everyone has a different foot size, strides differ. Manny people average 3 feet per setup when jogging. For this application, assume the foot stride is 2.5 feet. There are 5,280 feet in a mile. To establish how many strides per minutes, allow the user to input the number of strides made during the first minute jogging and the number of strides made string the last minutes of jogging. Use the average of those values to represent the strides per minute. Allow the user to input the total time spent jogging in hours and minutes. Write code that will display to distance traveled in miles.
Engineering
1 answer:
Mashutka [201]3 years ago
7 0

Answer:

The program is given below with appropriate comments for better understanding

Explanation:

#Program

# foot stride = 2.5 feet

# 1 mile = 5280 feet

no_stride_first_min = int(input('Enter the number strides made durng the first minute of jogging: '))

no_stride_last_min = int(input('Enter the number strides made durng the last minute of jogging: '))

avg_stride_one_min = (no_stride_first_min + no_stride_last_min)/2 # calculates the average stride per minute

jogging_duration = float(input('Enter the total time spent jogging in hours and minute: '))

jogging_duration_hours = int(jogging_duration) # gets the hour

jogging_duration_min = jogging_duration - int(jogging_duration) # gets the minute

tot_jogging_duration_min = jogging_duration_hours*60 + jogging_duration_min # calculates total time in minutes

dist_feet = (avg_stride_one_min*2.5)*tot_jogging_duration_min # calculates the total distance in feet

dist_miles = dist_feet/5280 # calculates the total distance in mile

print('Distance traveled in miles = {0:.2f} miles'.format(dist_miles))

You might be interested in
What are the BENEFITS and RISKS of using automobiles?
Alona [7]

Answer:

7 benefits of a car: What you should know

Health and Emergencies. The safest way to ensure your health in the pandemic is by owning a private car. ...

Independence and Freedom. Relying on others for travel or using public vehicles could be detrimental. ...

Privacy. ...

Safety. ...

Save Time. ...

Take Pleasure Trips. ...

Flexibility.

Explanation:

The modern negative consequences of heavy automotive use include the use of non-renewable fuels, a dramatic increase in the rate of accidental death, the disconnection of local community, the decrease of local economy, the rise in obesity and cardiovascular diseases, the emission of air and noise pollution, the ...

5 0
2 years ago
Create a Python program that will produce the following output:
Aloiza [94]

Answer:

def main ():

   sentence = input("Please enter a sentence:")

   print("Original Sentence:",sentence)

   # start at the third character

   for i in range(2,  len(sentence), 3):

       # access the string by index  

       print("Every third letter:", sentence[i])

Explanation:

def helps define the sentence ( input)

in order to start printing from third letter we start the range from 2 and keep the step 3 . The range i is in square parenthesis to show the range and access string.

6 0
3 years ago
A type 3 wind turbine has rated wind speed of 13 m/s. Coefficient of performance of this turbine is 0.3. Calculate the rated pow
Anna [14]

Answer:

Rated power = 1345.66 W/m²

Mechanical power developed = 3169035.1875 W

Explanation:

Wind speed, V = 13 m/s

Coefficient of performance of turbine, C_p = 0.3

Rotor diameter, d = 100 m

or

Radius = 50 m

Air density, ρ = 1.225 kg/m³

Now,

Rated power = \frac{1}{2}\rho V^3

or

Rated power = \frac{1}{2}\times1.225\times13^3

or

Rated power = 1345.66 W/m²

b) Mechanical power developed =  \frac{1}{2}\rho AV^3C_p

Here, A is the area of the rotor

or

A = π × 50²

thus,

Mechanical power developed = \frac{1}{2}\times1.225\times\pi\times50^2\times13^3\times0.3

or

Mechanical power developed =  3169035.1875 W

8 0
3 years ago
In a long trip what is considered a life line to take with you.
Sophie [7]

Answer:

An emergency kit

Explanation:

The reason I say this is because:

A first aid kit can aid you if you have..

Scars

Cuts

Bruises

So, i would say that The first aid kit is the life line.

5 0
2 years ago
What is the mode of operation of a ramp digital voltimeter​
liberstina [14]

Answer:

The operating principle of a ramp type digital voltmeter is to measure the time that a linear ramp voltage takes to change from level of input voltage to zero voltage (or vice versa).

7 0
1 year ago
Other questions:
  • Why should engineers avoid obvious patterns?
    13·2 answers
  • Is air conditioner a refrigerator?
    10·1 answer
  • A level loop began and closed on BM_A (elevation = 823.368 ft). The plus and minus sights were kept approximately equal. Reading
    11·1 answer
  • Water enters an ice machine at 55°F and leaves as ice at 25°F. If the COP of the ice machine is 2.45 during this operation, dete
    7·1 answer
  • What is the following diagram called?
    15·1 answer
  • PLEASE ANSWER SOON
    7·1 answer
  • Is a unit of measurement for angles
    15·1 answer
  • Which option identifies the step skipped in the following scenario?
    9·2 answers
  • A design that either partially or wholly integrates the bodywork
    6·1 answer
  • Steam locomotives with a 4-6-2 wheel arrangement were usually classified as what?.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!