FREE xbox live 2 month plz help

Anyone that can give me the code to get my program to compile and work ill give u a xbox live 2 month.thanks guys its due tom so if anyone could give me the code i would appreciate it.

ALright so basically your suppose to tell the program the length and width of room and cost per sq foot. And the program should calculate the total including labor and tax cost. So basically the program just adds tax and labor the length width and cost per square foot are user entered. The labor and tax cost are both constant. Labor = 0.35 Tax=0.05.






#include <iostream>
#include <iomanip>
using namespace std;
void get_data(int & length,int& width,float costpersqfoot);
float InstalledPrice(int length,int width,float costpersqfoot);
float totalprice(float installion);
void printdata(int length,int width,float price);
const float LABOR_COST=0.35;
const float TAX_RATE=0.05;
int main ()
{
int length,width;
int count;
cout << " Enter number of mesurements to input";
cin >> count;

for (int i=1; i <=count; i++)
{
get_data (length,width);
float Installedprice = length * width * float costpersqfoot + LABOR_COST;
cout << " Your installed price is" <<
setprecision(2) << length * width * float costpersqfoot + LABOR_COST + TAX_RATE << endl;
cout << " Your total price is" <<

}
system("PAUSE");
}
void get_data (length,width)
{
cout << " Enter length";
cin >> length;
cout << " Enter width:";
cin >> width;

}
float InstalledPrice (int length, int width)
{
return length * width * float costpersqfoot + LABOR_COST;
}
float totalprice (int length, int width)
{
return length * width * float costpersqfoot + LABOR_COST + TAX_RATE ;
}
Edit
lol..
1. When you post code, put it in [code][/code] tags, to make it readable.
2. About your problem:
The algorithm is very simple. Ask for length, ask for width, ask for cost per square foot. Then calculate the cost: I bet that labor cost and tax rate depend on area, so add them to cost per sq foot. Then just multiply the three (width, height, cost per sq foot) and print the result.
3. Why in the world do you have 3 threads about this and still made no progress?
Topic archived. No new replies allowed.