Question: Write a program that calculate the cost of the carpet for a room, the room has a rectangle shape. The program should ask the

 Write a program that calculate the cost of the carpet for a room, the room has a rectangle shape. The program  

Write a program that calculate the cost of the carpet for a room, the room has a rectangle shape. The program should ask the user to enter the two dimensions of the room and the price per m. Then calculate the cost as follow: The cost = area of the room * unit Sample input/output Enter width and length of the room: 5 4.25 Enter the price per meters square: 3.75 The room will cost BD. 79.69

Step by Step Solution

3.32 Rating (155 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer Certainly Here is a simple Java program that calculates the cost of carpet for a rectangular ... View full answer

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 Programming Questions!