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
As you have learned, not all motor oils are the same. What are two things that make them different?.
saul85 [17]

Answer:

quality ingredients and exceeding industry standards

Explanation:

5 0
2 years ago
A guy named Kirby Had touched only a gear on the projector. Yet there was a out of the blue rip. Kirby did not mind at all and s
solong [7]

The guy named Kirby didn't touch the power button on the projector. If he touched means the projector will work fine.

<u>Explanation</u>:

  • Kirby touched the gear on the projector. He should check the projector carefully before operating the projector. But he didn't check properly.
  • There was a blue rip in the projector. Kirby fails to notice the blue rip. Without minding that he has started the projector. So the tape and the projector is not working well.
  • He should fix the blue rip and he should press the start button in the projector. The mistake is he didn't do that. This is the thing that made the projector ripped.                                                                                                                                                                  

                           

7 0
3 years ago
Kkhghghglgghklghghghlk
RideAnS [48]

Answer:

hLDskjdbKSABCLABJC

Explanation:

BECAUSE

3 0
4 years ago
Read 2 more answers
Which of these credit building options do you personally think is the easiest method that you can see yourself doing? Explain yo
enot [183]

Answer:

Explanation:

Your 3-B Annual Credit Reports & Scores with Enhanced Credit Report Monitoring.

Trusted by Millions

7 0
3 years ago
Determine the depreciation expense for 2018 and 2019 using the following​ methods: (a)​ Straight-line (SL),​ (b) Units of produc
prohojiy [21]

Answer:

Check Explanation.

Explanation:

(1). The straight-line method: the general clue with this method is that in the two years, depreciation is the same. The formula for Calculating depreciation is given below;

straight-line method = (cost - Residual value)/ useful life in years.

From the question we know that the cost of acquisition is $30,000,000, the residual value of the asset is $4,000,000 and useful life is 7 years. Therefore;

straight-line method = ($30,000,000 - $4,000,000)/ 7.

= $3, 714,285.71 Per year.

That is $3, 714,285.71 for 2018 and 2019.

(2).Units of production​ (UOP) = (cost - Residual value)/ useful life in units.

= ($30,000,000 - $4,000,000)/ 4,375, 000.

Units of production​ (UOP) = $6 per mile.

Hence, the depreciation in 2018 = Depreciation per unit × 2018 year usage.

= 6 × 1,100,000 mile.

= $6,600,000.

depreciation in 2019 = Depreciation per unit × 2019 year usage.

= 6 × 1,200,000.

= $7,200,000.

Double-declining-balance​ (DDB)= (cost - accumulated depreciation) × 2 × 1/(useful life years).

Double-declining-balance​ (DDB) = (30,000,000 - 0)× 2 × (1/7).

= $8,571,428.57 depreciation in 2018.

= $8,571,428.6 depreciation in 2018

Double-declining-balance​ (DDB) = (30,000,000 - 8,571,428.57) × 2 × 1/7.

= $6,122,449.00 depreciation in 2019.

====================================================================

Total depreciation for straight-line method(2018 and 2019) = $7,428,571.42.

Total depreciation for Units of production​ (UOP)(2018 and 2019) = $13,800,000.

Total depreciation for Double-declining-balance (DDB)= $ 14,693,877.6.

5 0
3 years ago
Other questions:
  • When the desired section has been cut out and is not seen elsewhere on the drawing, a(n) ____is being used.
    15·1 answer
  • For a flow in the xy plane, the x component of velocity is given by u = Ax2y2, where A = 0.4 m-3 · s-1, and x and y are measured
    11·1 answer
  • Which of the following statements is true about alcoholism
    10·1 answer
  • Two airstreams are mixed steadily and adiabatically. The first stream enters at 35°C and 30 percent relative humidity at a rate
    6·1 answer
  • Calculate the line parameters ????′, ????′, ????′, and ????′ for a coaxial line with an inner conductor diameter of 0.5 cm and a
    13·1 answer
  • Air enters a compressor at 100 kPa, 10°C, and 220 m/s through an inlet area of 2 m2. The air exits at 2 MPa and 240°C through an
    10·1 answer
  • Which apparatus is likely to carry a ladder? (There may be more than one answer.)
    8·1 answer
  • David wants to obtain a job as a quality engineer at a manufacturing facility. Which of the following paths should he follow to
    15·1 answer
  • The design of a camshaft-drive system of a four-cylinder automobile engine is shown. As the engine is revved up, the belt speed
    8·1 answer
  • Subject of the study about vacuum cleaner
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!