Does it compile?
I fixed several errors, try new version:
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
double customers, hours, minutes;
double average;
cout << " How many customers you served today? ";
cin >> customers;
cout << " How many full hours you worked today? ";
cin >> hours;
cout << " How many additional minutes you worked today? ";
cin >> minutes;
if(minutes >= 30)
hours++;
average=customers / hours;
cout << "You have served " << average << " customers per hour" << endl;
system("PAUSE");
return EXIT_SUCCESS;
}
- better not to mix floats and doubles
- hours == hours + 1 doesn't increment hours, use hours = hours + 1 or, better, hours++
- else block is not essential in current situation