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
How to make text take shape of object in affinity designer
Alina [70]

Answer:

To fit text to a shape in Affinity Designer, make sure you have your text selected. Then, grab the Frame Text Tool and click on the shape. A blinking cursor will appear within the shape, indicating that you can begin typing. The text you type will be confined to the boundaries of the shape.

Explanation:

6 0
3 years ago
B. Is the “Loading Time” of any online application a functional or a non-functional requirement? Can the requirement engineers s
Oksi-84 [34.3K]

Answer:

non-functional requirement,

Yes they can.

The application loading time is determined by testing system under various scenarios

Explanation:

non-functional requirement are requirements needed to justify application behavior.

functional requirements are requirements needed to justify what the application will do.

The loading time can be stated with some accuracy level after testing the system.

4 0
3 years ago
What is the mechanical advantage of a pulley with 3 support ropes?
snow_tiger [21]

Answer:

The mechanical advantage is 3 to 1

Explanation:

A frictionless pulley with three support ropes carries equal tension on each of the ropes thus;

Tension in each pulley rope = T

Total tension in the 3 ropes = 3 × T = 3·T

Direction of the tension forces on each rope = Unidirectional

Total force provided by the 3 ropes = 3·T

Therefore, a force, T, applied at the end of the rope will result in a lifting force of 3·T

Hence, the mechanical advantage = 3·T to T which is presented as follows;

Mechanical \ advantage = \dfrac{3 \cdot T}{T}  = \dfrac{3}{1}

The mechanical advantage = 3 to 1.

5 0
3 years ago
Which is a reason that teen might choose to focus on a friendship and not a romantic relationship
andrey2020 [161]

Answer: b. To avoid having distractions

Trust me it’s definitely option b

4 0
3 years ago
Read 2 more answers
Two identical billiard balls can move freely on a horizontal table. Ball a has a velocity V0 and hits balls B, which is at rest,
Lyrx [107]

Answer:

Velocity of ball B after impact is 0.6364v_0 and ball A is 0.711v_0

Explanation:

v_0 = Initial velocity of ball A

v_A=v_0\cos45^{\circ}

v_B = Initial velocity of ball B = 0

(v_A)_n' = Final velocity of ball A

v_B' = Final velocity of ball B

e = Coefficient of restitution = 0.8

From the conservation of momentum along the normal we have

mv_A+mv_B=m(v_A)_n'+mv_B'\\\Rightarrow v_0\cos45^{\circ}+0=(v_A)_n'+v_B'\\\Rightarrow (v_A)_n'+v_B'=\dfrac{1}{\sqrt{2}}v_0

Coefficient of restitution is given by

e=\dfrac{v_B'-(v_A)_n'}{v_A-v_B}\\\Rightarrow 0.8=\dfrac{v_B'-(v_A)_n'}{v_0\cos45^{\circ}}\\\Rightarrow v_B'-(v_A)_n'=\dfrac{0.8}{\sqrt{2}}v_0

(v_A)_n'+v_B'=\dfrac{1}{\sqrt{2}}v_0

v_B'-(v_A)_n'=\dfrac{0.8}{\sqrt{2}}v_0

Adding the above two equations we get

2v_B'=\dfrac{1.8}{\sqrt{2}}v_0\\\Rightarrow v_B'=\dfrac{0.9}{\sqrt{2}}v_0

\boldsymbol{\therefore v_B'=0.6364v_0}

(v_A)_n'=\dfrac{1}{\sqrt{2}}v_0-0.6364v_0\\\Rightarrow (v_A)_n'=0.07071v_0

From the conservation of momentum along the plane of contact we have

(v_A)_t'=(v_A)_t=v_0\sin45^{\circ}\\\Rightarrow (v_A)_t'=\dfrac{v_0}{\sqrt{2}}

v_A'=\sqrt{(v_A)_t'^2+(v_A)_n'^2}\\\Rightarrow v_A'=\sqrt{(\dfrac{v_0}{\sqrt{2}})^2+(0.07071v_0)^2}\\\Rightarrow \boldsymbol{v_A'=0.711v_0}

Velocity of ball B after impact is 0.6364v_0 and ball A is 0.711v_0.

5 0
3 years ago
Other questions:
  • Signal generator‘s internal impedance is purely resistive and has an open-circuit voltage of 3.5 V. When the generator is loaded
    11·1 answer
  • Determine the angular acceleration of the uniform disk if (a) the rotational inertia of the disk is ignored and (b) the inertia
    11·1 answer
  • Which of the following is not a primary or fundamental dimension? (a)-mass m (b)-length L (c)- timer t (d)-volume V
    5·1 answer
  • A large part in a turbine-generator unit operates near room temperature and is made of ASTM A470-8 steel ( ). A surface crack ha
    11·1 answer
  • Exercise 19
    15·1 answer
  • An insulated tank having a total volume of 0.6 m3 is divided into two compartments. Initially one compartment contains 0.4 m3 of
    8·1 answer
  • (a) In a 3-phase, 4-wire system, the currents are in the A, B, and C lines under abnormal conditions of loading were as follows:
    9·1 answer
  • Which device assists with medical imaging?
    7·2 answers
  • 1. Differentiate between speed and velocity.<br>​
    9·2 answers
  • The velocity components expressed in m/s<br>​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!