0

Here is my problem

I am trying to write a program that will estimate the number of boxes of tile needed for a job. A job is estimated by taking the dimensions of each room in feet and inches and converting these into a multiple of the tile size (rounding up any partial multiple) before multiplying to get the number of tiles for the room. A box should have 20 tiles, so I need to divide the total number needed by 20 and rounded up to get the number of boxes (they are square). Here is what I have so far:

```
#include <iostream>
#include <cmath>
#include <iomanip>
#include <fstream>
using namespace std;
// Function prototypes
void PrintHeading();
void DetermineTileno(float, float, int, int, float&);
void PrintResults( float, float, int, int, float);
int main()
{
// Input Variables
float roomNumber;
float tileSize;
int roomLength;
int roomWidth;
float tileNo;
PrintHeading();
// Prompt for and read Room Number
cout << "Input the total number of rooms to be tiled: " << endl;
cin >> roomNumber;
// the tile size is the same for all rooms
// Prompt for and read tile size, room width, room length.
cout << "Input the size of tile in inches:" << endl;
cin >> tileSize;
// Loop calculating room number
while (roomNumber >= 1)
{
}
struct _roomdim;
{
int feet, inches;
roomLength, roomWidth;
}
cout << "Input the width of room (feet and inches, seperated by "
<< "a space):" << endl;
cin >> roomWidth.feet >> roomWidth.inches;
cout << "Input the length of room (feet and inches, seperated"
<< " by a space):" << endl;
cin >> roomLength.feet >> roomLength.inches;
DetermineTileno(roomNumber, tileSize, roomLength, roomWidth,
tileNo);
PrintResults( roomNumber, tileSize, roomLength, roomWidth,
tileNo);
{
// local variables
float roomSize;
int tileCoverage;
roomSize = roomLength * roomWidth;
tileCoverage = tileSize * 20;
tileNo = ((roomSize)/(tileCoverage));
}
// dataOut.close();
cin.get();
cin.get();
return 0;
}
```

I get many errors when trying to compile this, and I also need to know what I can do to get it to give me a correct output of tiles needed. I am so confused on this!! Thanks in advance for any help you guys/gals can offer!

Emily