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
About what thickness of aluminum is needed to stop a beam of (a) 2.5-MeV electrons, (b) 2.5-MeV protons, and (c) 10-MeV alpha pa
Nana76 [90]

The thickness of aluminium needed to stop the beam electrons, protons and alpha particles at the given dfferent kinetic energies is 1.5 x 10⁻¹⁴ m.

<h3>Thickness of the aluminum</h3>

The thickness of the aluminum can be determined using from distance of closest approach of the particle.

K.E = \frac{2KZe^2}{r}

where;

  • Z is the atomic number of aluminium  = 13
  • e is charge
  • r is distance of closest approach = thickness of aluminium
  • k is Coulomb's constant = 9 x 10⁹ Nm²/C²
<h3>For 2.5 MeV electrons</h3>

r = \frac{2KZe^2}{K.E} \\\\r = \frac{2 \times 9\times 10^9 \times 13\times (1.6\times 10^{-19})^2}{2.5 \times 10^6 \times 1.6 \times 10^{-19}} \\\\r = 1.5 \times 10^{-14} \ m

<h3>For 2.5 MeV protons</h3>

Since the magnitude of charge of electron and proton is the same, at equal kinetic energy, the thickness will be same. r = 1.5 x 10⁻¹⁴ m.

<h3>For 10 MeV alpha-particles</h3>

Charge of alpah particle = 2e

r = \frac{2KZe^2}{K.E} \\\\r = \frac{2 \times 9\times 10^9 \times 13\times (2 \times 1.6\times 10^{-19})^2}{10 \times 10^6 \times 1.6 \times 10^{-19}} \\\\r = 1.5 \times 10^{-14} \ m

Thus, the thickness of aluminium needed to stop the beam electrons, protons and alpha particles at the given dfferent kinetic energies is 1.5 x 10⁻¹⁴ m.

Learn more about closest distance of approach here: brainly.com/question/6426420

7 0
2 years ago
What is the resistance of a resistor if the current flowing through it is 3mA and the voltage across it is 5.3V?
Flura [38]

Answer: 1766.667 Ω = 1.767kΩ

Explanation:

V=iR

where V is voltage in Volts (V), i is current in Amps (A), and R is resistance in Ohms(Ω).

3mA = 0.003 A

Rearranging the equation, we get

R=V/i

Now we are solving for resistance. Plug in 0.003 A and 5.3 V.

R = 5.3 / 0.003

= 1766.6667 Ω

= 1.7666667 kΩ

The 6s are repeating so round off to whichever value you need for exactness.

6 0
1 year ago
A dielectric material, such as Teflon®, is placed between the plates of a parallel-plate capacitor without altering the structur
Lina20 [59]

Answer: The electric field decreases because of the insertion of the Teflon.

Explanation:

If the charge on the capacitor is held fixed, the electric field as a consequence of this charge distribution (directed from the positive charged plate to the negative charged one remains unchanged.

However, as the Teflon is a dielectric material, even though doesn't allow the free movement of the electrons as an answer to an applied electric field, it allows that the electrons be displaced from the equilibrium position, leaving a local negative-charged zone close to the posiitive plate of the capacitor, and an equal but opposite charged layer close to the negative plate.

In this way, a internal electric field is created, that opposes to the external one due to the capacitor, which overall effect is diminishing the total electric field, reducing the voltage between the plates, and  increasing the capacitance proportionally to the dielectric constant of the Teflon.  

8 0
3 years ago
A coil with an average diameter of 5 inch will have an area of ""blank"" square meters
nadezda [96]

Answer:

19.64 square inches

Explanation:

Area will be (¶d^2)/4

= (3.142 x 5^2)/4

= 19.64 square inches

8 0
3 years ago
How to draw the output voltage waveform rectifier
tatyana61 [14]

Answer:

Half-wave rectifier converts an AC signal into a DC signal. It's called a half-wave because it only rectify the positive part of an AC signal.

AC Signal = An electrical signal that alternates between positive and negative voltage.

DC Signal = An electrical signal that only has positive voltage.

Rectify = A fancy word for converting something.

Adding a capacitor helps the positive part of the signal stay on longer. This work because the capacitor stores energy kinda like a battery. During the negative part of the AC signal, the energy stored in the capacitor will be drained and used, then the cycle repeats.

The load resistor is just there to prevent a short circuit from happening.

7 0
3 years ago
Other questions:
  • What is the zone that has just been added to the exchange zone where athletes may now hand off the baton
    5·1 answer
  • Rain falls on a 1346 acre urban watershed at an intensity of 1.75 in/hr for a duration of 1 hour. The catchment land use is 20%
    10·1 answer
  • Link AB is to be made of a steel for which the ultimate normal stress is 65 ksi. Determine the cross-sectional area of AB for wh
    14·1 answer
  • he ventilating fan of the bathroom of a building has a volume flow rate of 28 L/s and runs continuously. If the density of air i
    9·1 answer
  • If 100 J of heat is added to a system so that the final temperature of the system is 400 K, what is the change in entropy of the
    5·1 answer
  • Sirens and flashing lights do NOT indicate that _____ may be nearby.
    7·2 answers
  • Which excerpt from "The Chrysanthemums' best reveals that Elisa is proud of her
    6·1 answer
  • Glyphicons is mainly used for​
    12·1 answer
  • Waste that is generated by a business is called a _____________.
    14·2 answers
  • QUICK ASAP!!!
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!