Question: Write a distance-conversion program that gives the user the option of converting mile to Km or Km to mile. Then carry out the conversion.

Write a distance-conversion program that gives the user the option of converting mile to Km or Km to mile.  

Write a distance-conversion program that gives the user the option of converting mile to Km or Km to mile. Then carry out the conversion. Use floating point values. Interaction with the program might look like this: (CLO-1) (marks: 05) Type I to convert mile to Km, 2 to convert Km to mile: 1 Enter distance in mile: 123 In Km that's = 196.8

Step by Step Solution

3.51 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

def distanceconverter Converts distances between miles and kilometer... View full answer

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 Programming Questions!