Question: A rectangular room has length L and width W. We wish to cover the floor with square tiles. Given the room dimensions we need to

A rectangular room has length L and width W. We wish to cover the floor with square tiles. Given the room dimensions we need to know how many tiles to purchase, and the total cost of the purchase. Write a C program that performs the following tasks Prompt the user for the following information: Length of the room in inches (to the nearest inch) Width of the room in inches (to the nearest inch) Length of one side of the tile in inches (to the nearest inch) Price per tile in dollars (to the nearest penny) Percent sales tax to be included in the final price Calculate, and display on the screen, the total area of the room to be tiled (square inches) Calculate, and display on the screen, the number of tiles to be purchased (assume that there is no empty space between tiles) Calculate, and display on the screen, the total cost of the tiles before sales tax (dollars) Calculate, and display on the screen, the total cost of the tiles including sales tax (dollars)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
