Question: Take the python program shown: and modify it to ask for kilometers and return miles. The equation is miles = kilometers * 0.625 . Be

Take the python program shown:Take the python program shown:and modify it to ask for kilometers andand modify it to ask for kilometers and return miles. The equation is miles = kilometers * 0.625. Be sure to change the documentation.

Lec1Code.py - /home/sshervais/Classes/MISC371F18/Lec1Code.py (2.7.12) File Edit Format Run Options Window Help AUTHOR: sshervais CREATE DATE: 20 Sep 2011 FILE: miles2kilos php PURPOSE:converts statute miles into kilometers MOD DATE: 21 Sep 2011 PROGRAMMER: Sshervais MOD : added error trap for non-numeric (bug 01) COMMENT: may want to add nautical mile option, and increase precision from 1.6 #get the input miles-input("miles" #calculate the result kilometers = miles * 1.6 #print the output print (str(miles)" miles equal "str(kilometers)kilometers ") Ln: 1 Col: 0

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!