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

Omar is working with a measurement tool that reports measurements in yard, feet

ID: 3632033 • Letter: O

Question

Omar is working with a measurement tool that reports measurements in yard, feet and inches.
Since Omar is unfamiliar with these units, he wants the numbers to be converted into
centimeters. He would also like the result to be properly rounded to the nearest centimeter. As an
example, if the measurement is 3 yards, 2 foot, and 7 inches, then he wants this to be converted
to 353 centimeters.
1. Identify the inputs and outputs of the problem.
2. Identify the processing needed to convert the inputs to the outputs. HINT: (1 Yard= 3 Feet, 1
feet = 12 inches and 1 inch = 2.54 cm)
3. Design an algorithm in pseudocode to solve the problem. Make sure to include steps to get
each input and to report each output.
4. Identify two test cases other than the example given above. For each of the two test cases
show what inputs you will use and calculate what your expected outputs should be.
5. Write down a C program to implement your solution and test your program using the test
cases you came up with in step 4

Explanation / Answer

Dear Friend here is the program u want PLEASE RATE #include #include int main() { float yard,inch,feet; float cent; printf("%s ","Please Enter the number of yard(s)"); scanf_s("%f",&yard); printf("%s ","Please Enter the number of Inche(s)"); scanf_s("%f",&inch); printf("%s ","Please Enter the number of Foot"); scanf_s("%f",&feet); yard=( (yard*3)*12 )*2.54; inch=(inch*12) *2.54; feet=(feet*2.54); cent=yard+inch+feet; cent=floor(cent); printf("%s %d %s ","This equals ",(int)cent," centimeters"); }
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