Question: Write a Java program that calculates the approximate cost to put flooring in your home. We are assuming that all rooms are rectangular. Write a

Write a Java program that calculates the approximate cost to put flooring in your home. We are assuming that all rooms are rectangular. Write a program named Carpet (you do not need a blueprint for this one). Input should be the length and width of each room, and cost/sqFt for each room. You need to accumulate the number of rooms, the floor space, and the total cost. Loop by asking the user if there are more rooms (true or false). Output the number of rooms, total square footage, and the total cost for the flooring SAMPLE OUTPUT: Write a Java program that calculates the approximate cost to put flooring

What is the length of the room in feet? 10 What is the width of the room in feet?| 14 What is the cost per square foot? 6.52 Your room has 140.0 square feet and cost $910.00 to add flooring. More rooms to calculate? (true/false) true What is the length of the room in feet? 12 What is the width of the room in feet? 16 What is the cost per square foot? 3.75 Your room has 192.0 square feet and cost $720.00 to add flooring. More rooms to calculate? (true/false) false The number of rooms is 2 The total square footage is 332.0 and the total cost is $1,630.00

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!