Question: Question 32 20 pts In Spyder, write a Python program that will solve the following problem. Name the program carpet.py. A gym owner wants to

 Question 32 20 pts In Spyder, write a Python program that

Question 32 20 pts In Spyder, write a Python program that will solve the following problem. Name the program carpet.py. A gym owner wants to cover the gym floor with carpet squares. Each carpet square is 2 feet x 2 feet. The floor is rectangular and the owner needs to know how many carpet squares to buy. The program must perform these tasks: 1. Import the math module 2. input (with a prompt) the length of the room (the number may have a decimal point) 3. input (with a prompt) the width of the room (the number may have a decimal point) 4. calculate the number of squares needed to cover the floor and store in a variable. The number must be an integer because you cannot buy a piece of a square. You have to buy a whole square. o It may help to make a sketch. The math method math.ceilis needed in the calculation 5.print (with meaningful text) the number of carpet squares needed You do not have to write comments. Upload your Python program (hle ending with .py)

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!