Question
Read from input the carpet price per square foot (float), room width (int) and room length (int). Calculate the room area in square feet. Calculate
Read from input the carpet price per square foot (float), room width (int) and room length (int). Calculate the room area in square feet. Calculate the carpet price based on square feet with an additional 20% for waste. Output square feet and carpet cost.
Ex: If the input is:
1.10 15 12
the output is:
Room: 180 sq ft
Carpet: $237.60
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Answer You can achieve this in Python with the following code Read input pricepersqfo...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 StartedRecommended Textbook for
Accounting What the Numbers Mean
Authors: David H. Marshall, Wayne W. McManus, Daniel F. Viele,
9th Edition
978-0-07-76261, 0-07-762611-7, 9780078025297, 978-0073527062
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App