Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( 7 0 points ) Problem: Documenting errrors; Getting a program to run On your computer, run your choice of Python IDE ( Wing ,
points Problem: Documenting errrors; Getting a program to run
On your computer, run your choice of Python IDE Wing VS Code or other
Copy and paste the Python program below into a NEW FILE in the IDE editor of your choice. The program is everything between the two horizontal lines on the page.
Save the program file as
labpy
# Prolog
# Author: YOUR NAME
# Email: YOUR EMAIL euky, edu
Section: YOUR SECTION
Purpose:
convert meters to millimeters, using fact that
there are millimeters in meter
Preconditions input:
number of meters floating point
Postconditions output:
number of meters, floating point with decimals rounded
number of millimeters, floating point with decimals rounded
def main:
# Design and implementation
# Output a message to identify the program, and a blank line
print Conversion of meters to millimeters"
print
# Input amount of meters from user
meters float input How many meters?
Calculate number of millimeters
millimeters in meter
millimeters meters
Output resulting millimeters and given number of meters
print
print : meters is : millimeters." formatmeters millimeters
main
dots
Test plan:
Input, Output
meters, millimeters
meter, millimeters
meters, millimeters
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