I'm taking an intro to c++ class this semester and I'm a little lost on how to write this program project I have. I was wondering if i could get any help on this from you guys. Here's the requirements off his website
Write a program to process weekly employee time cards and compute pay for all employees of a company. Each employee will have three input data items:
* employee name
* hourly wage rate
* number of hours worked during the week
Employees are to be paid time-and-a-half for all hours over 40 per week. A tax amount of 3.625 percent of gross pay will be deducted. The program output should show each employee's:
Yea i messed up on that one. I'm guessing I should have three seperate classes. He explains it on his website
Your program should have four functions namely:
Ok after cleaning things up a bit heres what i have but I'm also getting an error with it to only one. It says "unknown character 0*60" in line 43
#include <iostream>
#include <string>
using namespace std;
After working on this for a while longer Ive scratched that whole thing and decided to do it this way. Theirs somethings I need to work out and I'm not sure I did alot of this right due to the huge amount of errors. Here it is
#include<iostream>
#include<string>
using namespace std;
do
{
cout <<"Welcome to you Employee Payslip Generator:" << endl;
cout <<"Please enter your employee's name:"<<endl;
cin >> EmployeeName;
cout <<"Number of hours worked this week? :";
cin>> HoursWorked;
cout<<endl;
cout<<"Employee's Payrate? :";
cin>>PayRate;
cout<< EmployeeName <<"'s gross pay is :" << GrossPay <<endl;
cout<< EmployeeName <<"'s net pay is :"<< NetPay <<endl;
cout<< endl;
cout<<"Do you want to process another employee?" <<endl;
cout<<"Enter 1 for yes and 0 for no:"<<endl;
cin<< another_employee;
}
while(another_employee==1)
cout<<"The total gross pay for your employees is:" <<TotalNetPay;
cout<<endl;
cout<<"The total net pay for your employees is:"<<TotalGrossPay;
cout<<endl;
cout<<"The average gross pay for your employees is:"<<AverageGrossPay;
cout<<endl;
cout<<"The average net pay for your employees is:"<<AverageNetPay;
cout<<endl;