Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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