Question: Write a program with gear radius input as a double. Then output the number of teeth that the gear must have (integer). Note: it is
Write a program with gear radius input as a double. Then output the number of teeth that the gear must have (integer). Note: it is not possible to have a gear with less than two teeth.

In C code
16.37 Lab 5, P2(F): Bicycle Gear - functions This lab will be available until February 19th, 1:00 PM MST The number of teeth in a bicycle gear is determined by its radius. Naturally the number of teeth must be an integer The relationship is Pitch = .5 Circumference = 2*pi*Radius NTeeth = round (Circumference/Pitch) where round is a function found in math.h Write a program with gear radius input as a double. Then output the number of teeth that the gear must have integer). Note: it is not possible to have a gear with less than two teeth. Your program should use proper grammar: 1 tooth vs 2 teeth You can assume the following: Pitch - 0.5 pi - 3.14159 Ex: If the input is: 1.3 the output is: A gear with 16 teeth is the closest possible match Ex: If the input is: .0003 the output is: It is not possible to design a gear with zero teeth Ex: If the input is .04 the output is: It is not possible to design a gear with one tooth Your program must define and call the following function that receives as input the gear radius. void GearTeeth (double Radius) 301608.1769614 LAB ACTIVITY 16.37.1: Lab 5, P2(F): Bicycle Gear - functions 0/6 main.c Load default template.. 1 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
