is this program accurate? if not i need somebody dat can make clear directions to me on how to create this program with no errors or warnings. i got 2 errors n 1 warning on here so far after i compiled it.
the code is in the following:
//Program 2-2 Calculating the income for employees.
#include <iostream.h>
int main()
{
int wage, hours;
cout << "\n Enter the time in hours";
cin >> time;
int count = 0; //
while ( hours >=40) {
wage = (40 * hourly rate)
cin >> gross pay;
}
;return 0;
}
The objective is in the following:
Develop a C++ program that will determine the gross pay for each of several employees. The company pays “straight-time for the first 40 hours worked by each employee and pays “time-and-a-half for all hours worked in excess of 40 hours. You are given the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee and should determine and display the employee's gross pay. You should perform the calculation for three employees