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
Which type of engineer is needed in the following scenario?
gregori [183]

Answer:

A: Agricultural Engineer

Explanation:

I had this same question for a test and got it right with a being the answer :)

8 0
2 years ago
Read 2 more answers
What type of engineer makes sure equipment is safe and operational
zvonat [6]

Answer:

mechanical engineer is the best answer

8 0
3 years ago
A material has the following properties: Sut = 275 MPa and n = 0.40. Calculate its strength coefficient, K.
Tems11 [23]

Answer:

The strength coefficient is K = 591.87 MPa

Explanation:

We can calculate the strength coefficient using the equation that relates the tensile strength with the strain hardening index given by

S_{ut}=K \left(\cfrac ne \right)^n

where Sut is the tensile strength, K is the strength coefficient we need to find and n is the strain hardening index.

Solving for strength coefficient

From the strain hardening equation we can solve for K

K = \cfrac{S_{ut}}{\left(\cfrac ne \right)^n}

And we can replace values

K = \cfrac{275}{\left(\cfrac {0.4}e \right)^{0.4}}\\K=591.87

Thus we get that the strength coefficient is K = 591.87 MPa

6 0
3 years ago
Who want to 1v1 lol unblocked games 76 with me
Ede4ka [16]

Answer:

what's that??

Explanation:

7 0
3 years ago
Read 2 more answers
During an expansion process, the pressure of a gas changes from 15 to 140 psia according to the relation P = aV + b, where a = 5
Dominik [7]

The work done during the process is 359 btu

<u></u>

<u>Explanation:</u>

Given-

P1 = 15psia

P2 = 140 psia

V1 = 7ft³

a = 5 psia/ft³

b = C

P = aV +b

Work done, W = ?

P1 = aV1 + b

15 = 5 (7) + b

b = -20 psia

P2 = aV2 + b

140 = 5 ( V2) - 20

V2 = 32 ft³

The work done by the process is the area under the curve which is trapezoidal.

Therefore,

Work done, W = area of trapezoid

= (P2 + P1 / 2) (V2 - V1)

= ( 140 + 15 / 2 ) ( 32 - 7)

= 1937.5 psia ft³

= 1937.5/ 5.4039 = 359 btu

Therefore, the work done during the process is 359 btu

5 0
3 years ago
Other questions:
  • You’ve experienced convection cooling if you’ve ever extended your hand out the window of a moving vehicle or into a flowing wat
    6·1 answer
  • c++ If your company needs 200 pencils per year, you cannot simply use this year’s price as the cost of pencils 2 years from now.
    9·1 answer
  • A column has a 4.8 cm by 8.7 cm rectangular cross section and a height 4 mm . The column is fixed at both ends and has a lateral
    6·1 answer
  • One of the disadvantages of the test of the hypothesis is that the final decision cannot be said to be completely correct eviden
    13·1 answer
  • Carbon resistors often come as a brown cylinder with colored bands. These colored bands can be read to determine the manufacture
    7·1 answer
  • 11. Which of the following is the brake fluid most often used?
    11·2 answers
  • When CO2 rises, temperature rises. Why do you think this is?
    15·1 answer
  • Urgent please help me...
    8·1 answer
  • Can someone please help me this is urgent!?
    12·2 answers
  • Binary classification algorithm
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!