The Problem says: Write a program that estimates the number of boxes of tile for
ID: 3617276 • Letter: T
Question
The Problem says: Write a program that estimates the number of boxes of tile fora job. A job is estimated by taking the dimensions of each room infeet and inches, and converting these dimensions into a multiple ofthe tile size (rounding up any partial multiple) before multiplyingto get the number of tiles for the room. A box contains 20 tiles,so the total number needed should be divided by 20 and rounded upto get the number of boxes. The tiles are assumed to besquare. The program should initially prompt the user for the size ofthe tile in inches and the number of rooms to be covered with tile.It should then input the dimensions for each room and output thenumber of tiles needed for that room. After data for the last roomis input, the program should output the total number of tilesneeded, the number of boxes of tile needed, and how many extratiles will be left over. Here is an example of how a run might appear: Enter number of rooms: 2 enter size of tile in inches: 12 Enter room width (feet and inches, separated by a space):17 4 Enter room length (feet and inches, separated by a space):9 3 Room requires 180 tiles. Enter room width (feet and inches, separated by a space):11 6 Enter room length (feet and inches, separated by a space):11 9 Room requires 144 tiles. Total tiles required is 324. Number of boxes needed is 17. There will be 16 extra tiles. Use functional decomposition to solve this problem, and codethe solution using functions wherever it makes sense to do so. Yourprogram should check for invalid data such as nonpositivedimensions, number of rooms less than 1, number of inches greaterthan 11, and so on. It should prompt the user for corrected inputwhenever it detects invalid input. The Problem says: Write a program that estimates the number of boxes of tile fora job. A job is estimated by taking the dimensions of each room infeet and inches, and converting these dimensions into a multiple ofthe tile size (rounding up any partial multiple) before multiplyingto get the number of tiles for the room. A box contains 20 tiles,so the total number needed should be divided by 20 and rounded upto get the number of boxes. The tiles are assumed to besquare. The program should initially prompt the user for the size ofthe tile in inches and the number of rooms to be covered with tile.It should then input the dimensions for each room and output thenumber of tiles needed for that room. After data for the last roomis input, the program should output the total number of tilesneeded, the number of boxes of tile needed, and how many extratiles will be left over. Here is an example of how a run might appear: Enter number of rooms: 2 enter size of tile in inches: 12 Enter room width (feet and inches, separated by a space):17 4 Enter room length (feet and inches, separated by a space):9 3 Room requires 180 tiles. Enter room width (feet and inches, separated by a space):11 6 Enter room length (feet and inches, separated by a space):11 9 Room requires 144 tiles. Total tiles required is 324. Number of boxes needed is 17. There will be 16 extra tiles. Use functional decomposition to solve this problem, and codethe solution using functions wherever it makes sense to do so. Yourprogram should check for invalid data such as nonpositivedimensions, number of rooms less than 1, number of inches greaterthan 11, and so on. It should prompt the user for corrected inputwhenever it detects invalid input. Room requires 144 tiles. Total tiles required is 324. Number of boxes needed is 17. There will be 16 extra tiles. Use functional decomposition to solve this problem, and codethe solution using functions wherever it makes sense to do so. Yourprogram should check for invalid data such as nonpositivedimensions, number of rooms less than 1, number of inches greaterthan 11, and so on. It should prompt the user for corrected inputwhenever it detects invalid input.Explanation / Answer
please rate - thanks where did you get the number of tiles from. I divide roomarea/tilearea, I believe my answers are correct let me know if it's wrong #include using namespace std; void getinput1(int&,int&); void getinput2(int&,int&,int&,int&); int gettiles(int,int,int,int,int); int getin(int,int); int main() {inti,rooms,tile,wft,win,lft,lin,tottiles,roomtiles,boxes,extra; getinput1(rooms,tile); for(i=0;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.