Read from input the carpet price per square foot (float), room width (int) and room length (int).
Fantastic news! We've Found the answer you've been seeking!
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 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
Related Book For
Accounting What the Numbers Mean
ISBN: 978-0073527062
9th Edition
Authors: David H. Marshall, Wayne W. McManus, Daniel F. Viele,
Posted Date: