Specification You must write a script that prints a table of inches and their equivalent centimeter values. You convert inches to centimeters using the formula cm = inches * 2.54 Centimeter values...


Specification<br>You must write a script that prints a table of inches and their equivalent centimeter values.<br>You convert inches to centimeters using the formula<br>cm = inches * 2.54<br>Centimeter values must be integers.<br>The script should prompt the user for a minimum and maximum inches.<br>At the top of the table should appear the labels

Extracted text: Specification You must write a script that prints a table of inches and their equivalent centimeter values. You convert inches to centimeters using the formula cm = inches * 2.54 Centimeter values must be integers. The script should prompt the user for a minimum and maximum inches. At the top of the table should appear the labels "Inches" and "Centimeters". Under these labels should be a line of dashes. The centimeter values should align with the "Centimeters" label. See the example below. Script for this assignment Open an a text editor and create the file hw5.py. You can use the editor built into IDLE or a program like Sublime.
Write this program in a step-by-step fashion using the technique of incremental development.<br>In other words, write a bit of code, test it, make whatever changes you need to get it working, and go on to the next step.<br>1. Get values for min and max using assignment statements and the input function.<br>Convert both min and max to integers.<br>Print min and max.<br>Run the script.<br>fix any errors you find.<br>2. Remove the print statements you wrote above.<br>Print the labels

Extracted text: Write this program in a step-by-step fashion using the technique of incremental development. In other words, write a bit of code, test it, make whatever changes you need to get it working, and go on to the next step. 1. Get values for min and max using assignment statements and the input function. Convert both min and max to integers. Print min and max. Run the script. fix any errors you find. 2. Remove the print statements you wrote above. Print the labels "Inches" and "Centimeters". Print a line of dashes under the labels. Run the script. fix any errors you find. 3. Write a for loop that will give the loop variable inches values between min and max. Inside the code block print the value of inches Run the script. fix any errors you find. 4. Remove the print statement inside the for loop. Write an assignment statement that calculates the value of the equivalent centimeter value. Print both the inches and centimeter values. Run the script. fix any errors you find. 5. Use escape characters to align the centimeter values with their label. Run the script. fix any errors you find.
Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here