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
Describe ICP/OES in detail.
alex41 [277]

Answer:

ICP -OES stand for inductively coupled plasma optical emission spectroscopy

Explanation:

It is techniques that known as trace level technique which help to identify and quantify the element present in sample by using spectra emission.

The analysis process include desolvates, ionization and excitation of the sample. The sample is identify by analyzing the emission line from it and quantify by analyzing the intensity of same emission lines.

7 0
3 years ago
Read 2 more answers
A college student volunteers with the elderly in a hospice program and discovers her clients complain of dry skin. She has an id
daser333 [38]

Answer:

D

Explanation: She hopes to be able to make this, however she hasn't yet...therefore she is thinking of a concept and it's development

3 0
3 years ago
Read 2 more answers
What are Tresca and Von Mises yield criteria?
elena-s [515]

Answer

For isotropic material plastic yielding depends upon magnitude of the principle stress not on the direction.

Tresca and Von Mises yield criteria are the yield model which is widely used.

The Tresca yield criterion stated that yielding will occur in a material only when the greatest maximum shear stress reaches a critical value.

max{|σ₁ - σ₂|,|σ₂ - σ₃|,|σ₃ - σ₁|} = σ_f

under plane stress condition

  |σ₁ - σ₂| = σ_f

The Von mises yielding criteria stated that the yielding will occur when elastic energy of distortion reaches critical value.

σ₁² - σ₁ σ₂ + σ₂² =  σ²_f

5 0
3 years ago
How is the difference between science and engineering Best stated?
stiv31 [10]

Answer:Science is the body of knowledge that explores the physical and natural world. Engineering is the application of knowledge in order to design, build and maintain a product or a process

Explanation:

8 0
2 years ago
For a flow rate of 212 cfs find the critical depth in (a) a rectangular channel with ????=6.5 ft, (b) a triangular channel with
Fofino [41]

Answer:

A. 3.21ft

B. 3.51ft

C. 2.95ft

D. 1.5275ft

Explanation:

A) Q =212 cu.f/s

Formula for critical depth of rectangular section is: dc =[(Q^2) /(b^2(g))]^1/3

Where dc =critical depth, ft

Q= quantity of flow or discharge, ft3/s

B= width of channel, ft (m)

g = acceleration due to gravity which is 9.81m/s2 or 32.185ft/s2

Now, from the question,

Q = 212 cu.f/s and b=6.5ft

Therefore, the critical depth is: [(212^2)/(6.5^2 x32. 185)]^(1/3)

To give ; critical depth= (44,944/1359.82)^(1/3) = 3.21ft

B. Formula for critical depth of a triangular section; dc = (2Q^2/gm^2)^(1/5)

From the question, Q =212 cu.f/s and m=1.6ft while g= 32.185ft/s2

Therefore, critical depth = [(212^2) /(1.6^2 x32. 185)] ^(1/5) = (44,944/84.466)^(1/5) = 3.51ft

C. For trapezoidal channel, critical depth(y) is derived from (Q^2 /g) = (A^3/T)

Where A= (B + my)y and T=(B+2my)

Now from the question, B=6.5ft and m=5ft.

Therefore, A= (6.5 + 2y)y and T=(6. 5 + 2(5y))= 6.5 + 10y

Now, let's plug the value of A and T into the initial equation to derive the critical depth ;

(212^2 /32.185) = [((6.5 + 2y)^3)y^3]/ (6.5 + 10y)

Which gives;

1396.43 = [((6.5 + 2y)^3)y^3]/ (6.5 + 10y)

Multiply both sides by 6.5 + 10y to get;

1396.43(6.5 + 10y) = [((6.5 + 2y)^3)y^3]

Factorizing this, we get y = 2. 95ft

D) Formula for critical depth of a circular section; dc =D/2[1 - cos(Ѳ/2)]

Where D is diameter of pipe and Ѳ is angle at critical depth in radians.

Angle not given, so we assume it's perpendicular angle is 90.

Since angle is in radians, therefore Ѳ/2 = 90/2 = 45 radians ; converting to degree, = 2578. 31

Therefore, dc = (6.5/2) (1 - cos (2578.31))

dc = 3.25(1 - 0.53) = 3.25 x 0.47 = 1.5275ft

8 0
3 years ago
Other questions:
  • Mike is involved in developing the model building codes that various states and local authorities in the United States adopt. He
    6·1 answer
  • A rigid tank contains an ideal gas at 40°C that is being stirred by a paddle wheel. The paddle wheel does 240 kJ of work on the
    9·1 answer
  • What happens to a commercial airline at cruising altitude if the pilot does not touch the throttles?
    12·1 answer
  • If engineering is easy then why don't most people join?
    15·2 answers
  • The Cv factor for a valve is 48. Compute the head loss when 30 GPM of water passes through the valve.
    13·1 answer
  • Q1. In electronic circuits it is not unusual to encounter currents in the microampere range. Assume a 35 μA current, due to the
    13·1 answer
  • Given a series of numbers as input, add them up until the input is 10 and print the total. Do not add the final 10. For example,
    7·1 answer
  • Consider a 1.2-m-high and 2-m-wide glass window with a thickness of 6 mm, thermal conductivity k = 0.78 W/m·K, and emissivity ε
    5·1 answer
  • 1. ¿Cómo esta simbolizada la Cena en el Antiguo testamento?
    11·1 answer
  • Time left 0:35:32 Three steel rod (E = 200 GPa) supports 36 KN Load P. Each of the rods AB and CD has a 200 mm? cross- sectional
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!