Write a program that asks the user to enter a distance in kilometers, and then converts that distance to miles. The conversion formula is as follows: ????????????????????????????
Q1. Write a program that asks the user to enter a distance in kilometers, and then converts that distance to miles. The conversion formula is as follows:
Miles Kilometer x 0.6214
Submission for Q1:
1. A Python code file
2. Screenshot of the Running program
Q2. Write the following codes
Submission of Q2 (All parts a, b, and c):
1. A summary of the program, what does program do
2. Screenshot of the Running program
a). def message():
print('I am Arthur,')
print('King of the Britons.')
message()
b) def main():
print('I have a message for you.')
message()
print('Goodbye!')
def message():
print('I am Arthur,')
print('King of the Britons.')
main()
c)
def area(width, length):
return width * length
def perimeter(width, length):
return 2 * (width + length)
def main():
width = float(input("Enter the rectangle's width: "))
length = float(input("Enter the rectangle's length: "))
print('The area is', area(width, length))
print('The perimeter is', perimeter(width, length))
main()
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.