Question: Write a program that prompts the user for a distance in miles and converts it to kilometers. Your program must include a Main ( )
Write a program that prompts the user for a distance in miles and converts it to kilometers.
Your program must include a Main function. The function should:
Prompt the user for miles
Call the milesToKilometers function and send the miles as an argument
In addition, the program must define the function milesToKilometers The function should
Define miles as an input parameters
Display the equivalent kilometers
The formula to convert from miles to kilometers is: Kilometers Miles x
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
