Write a program that compares the area of two rectangles. You can do this several ways, one way is to add the length and width of each rectangle to get it's area and then compare the two areas...

Write a program that compares the area of two rectangles. You can do this several ways, one way is to add the length and width of each rectangle to get it's area and then compare the two areas together. The program should ask for the length and width of two rectangles and then tell the user which rectangle has the greater area, or if the areas are the same. The area of a rectangle is the rectangle's length times its width. Name the source code file yourName_HW4.py. Test and run the program. Capture the output console and save it as an image file named
4. Area of a Rectangle<br>• Write a program that compares the area of two rectangles. You can do this several ways. one way is to add the length and width of each rectangle to get it's area and then compare the two areas together.<br>• The program should ask for the length and width of two rectangles and then tell the user which rectangle has the greater area, or if the areas are the same.<br>• The area of a rectangle is the rectangle's length times its width. Name the source code file yourName HW4.py.<br>• Test and run the program. Capture the output console and save it as an image file named yourName HW4 output.jpg.<br>• Submit the py and the image files through Canvas.<br>Note: Sample output below:<br>Fast l: Code-Tracing<br>Output in comenta<br>Vart 21 Days of the Week<br>

Extracted text: 4. Area of a Rectangle • Write a program that compares the area of two rectangles. You can do this several ways. one way is to add the length and width of each rectangle to get it's area and then compare the two areas together. • The program should ask for the length and width of two rectangles and then tell the user which rectangle has the greater area, or if the areas are the same. • The area of a rectangle is the rectangle's length times its width. Name the source code file yourName HW4.py. • Test and run the program. Capture the output console and save it as an image file named yourName HW4 output.jpg. • Submit the py and the image files through Canvas. Note: Sample output below: Fast l: Code-Tracing Output in comenta Vart 21 Days of the Week

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here