Question: area.py : The area of a rectangle is calculated by taking its length times its width. Write a program which asks the user for 1

area.py : The area of a rectangle is calculated by taking its length times its width. Write a program which asks the user for 1) their measurement unit, 2) the length of a rectangle, and 3) the width of a rectangle. The program will calculate the area and display the answer within a sentence, including the units that they are using. Important: Use a rounding and a format code, to cut off possible long decimals at 2 places. Test the program to ensure it works with different units, lengths and widths.

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!