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

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!