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 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
Answer Certainly Here is a simple Java program that calculates the cost of carpet for a rectangular ... View full answer
Get step-by-step solutions from verified subject matter experts
