Question: HW 1 - Write a code to perform ( use SI units ) Ask the user for the number of teeth of the chainring and
HW Write a code to perform
use SI units
Ask the user for the number of teeth of the chainring and the number of teeth of the cassette. Try out your code with the following cases and The first number is the number of teeth of the chainring and the second one is the number of teeth of the cog in the cassette.
Display the gear ratio. Use a message as follows
Gear Ratio is :
Ask for the radius of the wheel in meters. Use to test your code.
Display the distance traveled by the bike in one revolution of the pedals.
Ask the user for the cadence of the pedals the cyclist weight and the grade of the terrain in percentage.
Display the velocity of the bike in and
Display the value in Newtons of the drag force, the rolling resistance force, and the force due to the grade.
Display the power in Watts required to maintain that cadence. Remember that power force velocity.
EML
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
