Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The ratio between successive speeds of a six-speed gearbox (assuming that the ge

ID: 3636843 • Letter: T

Question

The ratio between successive speeds of a six-speed gearbox (assuming that the gears are evenly spaced to allow for whole teeth) is



where M is the maximum speed in revolutions per minute and m is the minimum speed. Write a function speeds_ratio that calculates this ration for any maximum and minimum speeds. Write a main function that prompts for maximum and minimum speeds(rpm), calls speeds_ratio to calculate the ratio and displays the results in a sentence of the form

The ratio between successive speeds of a six-speed gearbox with maximum speed ______ rpm and minimum speed ______ rpm is _______.

Explanation / Answer

#include #include #include int main(int argc, char* argv[]) { int M;// maximum speed int m;//minimum speed double ratio;//ratio printf("Enter the maximum speed in rpm: "); scanf("%d", &M); printf("Enter the minimum speed in rpm: "); scanf("%d", &m); ratio=pow(M/m,1.0/5.0); printf("The ratio between successive speeds of a six-speed gearbox "); printf("with maximum speed %d rpm and the minimum speed %d rpm ",M,m); printf("is %.2f ",ratio); system("pause"); return 0; } 8000 500
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote