Question
assignment In this problem you will write the solution for the problem given and then extend it. Look at lab instructions and use the wing
assignment
In this problem you will write the solution for the problem given and then extend it. Look at lab instructions and use the wing Interactive Develoment Environment Create a height and width for a rectangle. Print the height, width, and area of the rectangle in the following format, with the columns aligned:
height: x.x width: x.x area: x.xxxxxxx...
Test with width 7.1 and height 2.9 and in the same script use floor division to divide the width and height by 2 and save these values in the height and width. Note: floor division is the prefered name in Python. Elsewhere it is commonly called integer division. print the data for this smaller rectangle also. Did you get the answers you expected?
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