Question
12. Write a program to calculate how many ceramic floor tiles are needed to cover a rectangular room. Also calculate the total cost to redo
12. Write a program to calculate how many ceramic floor tiles are needed to cover a rectangular room. Also calculate the total cost to redo the floor in the room. Prompt the user for inputs using methods from the JOptionPane class or Scanner class. Inputs: Length of the room Width of the room Cost of one ceramic floor tile Assumptions: You have selected a 12 by 12 (one foot by one foot) square ceramic floor tile Room measurements are in feet, so you wont have a room that is 8 feet 2 inches by 10 feet 10 inches Outputs: Length of the room Width of the room Cost of one floor tile Square feet to be tiled Number of floor tiles needed Total cost of the floor tiles
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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 Started