Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A company sells custom rectangular canvases. They will create the canvases for you. You only need to tell them the dimensions of the canvases.

A company sells custom rectangular canvases. They will create the canvases for you. You only need to tell

A company sells custom rectangular canvases. They will create the canvases for you. You only need to tell them the dimensions of the canvases. They charge $4.99 per square foot and require a minimum order of 20 square feet. You will write a program that asks the user to enter the number of canvases, and the dimensions of each canvas. Program 2 Requirements: The program must prompt the user for the number of canvases and set the price per square foot to 4.99. The program will use a counting loop to loop for the number of canvases. The loop body will: . . o Prompt the user for the length and width of each canvas Multiply the length and width to get the canvas size in square feet. . Accumulate total square footage for all the canvases . Once the loop is complete, ensure that at least 20 square feet are being purchased otherwise display an error. . Final price for valid orders will be calculated by multiplying the total square footage by the price per square foot. . O . Display the price per square foot, total square footage, and final price. Displayed values that represent dollar amounts must be formatted as currency, including a dollar sign and 2 decimal places

Step by Step Solution

3.43 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

Heres a Python program that fulfills the requirements for calculating the cost of custom rectangular ... 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

Financial Reporting Financial Statement Analysis And Valuation A Strategic Perspective

Authors: James M. Wahlen, Stephen P. Baginski, Mark Bradshaw

9th Edition

1337614689, 1337614688, 9781337668262, 978-1337614689

More Books

Students also viewed these Programming questions

Question

Describe the six elements of communication.

Answered: 1 week ago