Hi everyone! I'm both new here, and new to programming. I'm still learning how it all fits together, and have been putting together a simple assignment, but I've gotten a little stuck, and so far the book hasn't been a help. I know it must be something simple, but for the life of me I can't see it. The program compiles just fine, but when I run it, it stops asking people to put in the info, and crashes out. Anyway, here it is, if you could take a look and maybe point me in the right direction, I'd appreciate it.
#include <iostream>
using namespace std ;
int main()
{
int employeeID ;//Name of employee
float hourlyRate ;//Rate of pay per hour
float regularHours ;//Regular number of hours worked
float overtimeHours ;//Overtime hours worked
float grossPay ;//Total pay before taxes
float regularHourWages ;//How much was made in regular hours
float overTimeHourWages ;//How much was made working overtime
// greeting and read in employee ID
cout << endl ;
cout << "A-Z Supermarket Employees Monthly Gross Pay Calculation." ;
cout << endl ;
cout << "Enter Employee ID: " ;
cin >> employeeID ;
// read in the hourly rate
cout << endl ;
cout << "Enter hourly pay rate (specify two digits "
<< "after the decimal point):" ;
cin >> hourlyRate ;
// read in regular hours worked
cout << endl ;
cout << "Enter Regular Hours worked: " ;
cin >> regularHours ;
// read in overtime hours
cout << endl ;
cout << "Enter Overtime Hours worked: " ;
cin >> overtimeHours ;
// compute wages
regularHourWages = hourlyRate * regularHours ;
overTimeHourWages = 1.5 * hourlyRate * overtimeHours ;
grossPay = regularHourWages + overTimeHourWages ;
// display the result
cout << endl ;
cout << "Regular Hours Worked: " << +regularHours ;
cout << "Overtime Hours Worked: " << +overtimeHours ;
cout << "Gross Pay for Employee" << +employeeID+ "is" <<+grossPay << endl;
return (0); // terminate with success
}