Below are instructions of what is required of me and i have tried to write the program. can someone point to a right direction because i have confused myself in middle and i am stuck. Please help!
Write an employee class to encapsulate a users name, wage and
hours worked.
You should have get, set, and retrieve function for each
property, and functions that calculates their net pay
and gross pay.
Read in this information from the user, and display
their gross and net pay.
#include <iostream>
#include <string>
using namespace std;
class Employee {
private:
int usersName;
int hoursWorked;
int Wage;
int grossPay;
int netPay;
int payRate;
int percenttTaxesRate;
public:
string getusersName() {
return usersName;
}
void set usersName(string name) {
usersName = name;
}
int getWage() {
int wage = hoursWaged * payRate;
return Wage;
}
int grossPay= wage + percentTaxRate;
void setwage + PayRate(string grossPay) {
wage*PercentTaxRate = grossPay;
}
int netPay(){
grossPay-Taxes = netPay
void setgrosspay-taxes(string netPay){
grossPay-Taxes = netPay
void retrieve() {
cout << "users Name: ";
cin >> usersName;
cout << "wage <<"hoursWorked *payRate";
cin >>Wage;
}
void print() {
cout << usersName << " " <<usersName;
}
};
int main() {
Employee Sam;
Sam.retrieve();
Sam.print();
return 0;
}