Question: Develop a C program that receives as input a distance value d in inches and converts it to yards, feet, and inches Recall: 1 yard

 Develop a C program that receives as input a distance value

Develop a C program that receives as input a distance value d in inches and converts it to yards, feet, and inches Recall: 1 yard = 3 feet, 1 foot = 12 inches Your program must: Read the distance valued from the keyboard Use a function called dist_cony to break distance to yards, feet, and inches. Print the result in the main function (not within the dist_cony function) The dist_conv function prototype must be: void dist.conv (int d, int *p-y, int *p-f , int *p-i) Sample Code Execution: Red text indicates information entered by the user Enter the distance in inches: 98 98 inches equals 2 yards, 2 feet, and 2 inches

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!