Answered step by step
Verified Expert Solution
Question
1 Approved Answer
INSTRUCTIONS: ( 5 0 points ) Individual Problem: To convert from kilometers to miles, you multiply the kilometers by 0 . 6 2 1 3
INSTRUCTIONS:
points Individual Problem:
To convert from kilometers to miles, you multiply the kilometers by To convert from miles to feet, you multiply the miles by To convert from feet to yards, divide the feet by This program should input an amount of kilometers and convert it to miles and then to feet and then to yards.
points Individual Problem #: Complete a test plan.
Calculate what A B C and D will be Yes, a calculator is perfectly fine to use here. You do not have to give all the labels, just show the numbers in the order miles, feet, yards, showing places for each.
tableDescriptiontableInputkilometerstableExpected outputmiles feet, yardsNormal integer kilometers,ANormal float kilometers,BBoundary zero kilometers,CScientific notation kilometers,D
Put these answers as comments at the bottom of the program you write.
points Individual Problem #: Design
# prolog
# GIVE name, section, email address
#Purpose: Calculate the equivalent number of miles, feet and yards from kilometers.
#Preconditions: FILL THIS OUT
#Postconditions: FILL THIS OUT
# Get needed data from the keyboard, the number of kilometers.
# Calculate the equivalent miles.
# Calculate the equivalent number of feet.
# Calculate the equivalent number of yards.
# Print blank line
# Output the input kilometers with label and places.
# Output the miles with label and places.
# Output the yards with label and places.
# Output the feet with label and places.
Make sure you document your program in the py file with this design. You must have a prolog name section, email, purpose, preconditions, postconditionssee LabO for an example prolog and an example of an entire program
The Preconditions are the input what type it is and its meaning, and the Postconditions are the outputs what type they are and their meanings. You need to fill in these lines of the prolog.
points Individual Problem #: Implementation
Implement your design in Python. You must include the design given above in your program as comments. Your code statements should appear between the design steps.
Use meaningful variable names!
ALL your code MUST be inside a main function. There is a penalty of if it is not.
Don't forget to put your test case results Answers for Individual Problem # above at the bottom of the py file.
The output should be formatted exactly like the samples below: italicized bold text is what the user typed in
Test run
points Individual Problem #: Implementation
Implement your design in Python. You must include the design given above in your program as comments. Your code statements should appear between the design steps.
Use meaningful variable names!
ALL your code MUST be inside a main function. There is a penalty of if it is not.
Don't forget to put your test case results Answers for Individual Problem # above at the bottom of the py file.
The output should be formatted exactly like the samples below: italicized bold text is what the user typed in
Sample Run to the moon
Enter kilometers:
kilometers is miles,
which is yards or feet
Sample Run diameter of earth
Enter kilometers:
kilometers is miles,
which is yards or feet
Sample Run marathon
Enter kilometers:
kilometers miles,
which yards feet
Sample Run
Enter kilometers:
kilometers miles,
which yards feet
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started