Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

0619064625, 978-0619064624

More Books

Students also viewed these Databases questions