Question: Write and test a C program function makeMilesKmTable() to display a table that converts miles to kilometers. The arguments to the function should be the

Write and test a C program function makeMilesKmTable() to display a table that converts miles to kilometers. The arguments to the function should be the starting and stopping values of miles and the increment. The output should be a table of miles and their equivalent kilometer values. Use the relationship that 1 mile equals 1.61 kilometers. The table should be printed in two columns. For example, if the starting value is 1 mile, the ending value 20 miles, the incrementis 1 , the display shoulo look like this: [Hint: Find split =( start + stop) / 2. Let a loop execute from miles = start to split, and calculate and print across one line the values of miles and kilometers for both miles and (miles start + split +1)]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
