Question: I need help with making this c++ code compile. It's due soon #include #include using namespace std; class Employee{ public: string name; string title; double
I need help with making this c++ code compile. It's due soon
#include
using namespace std; class Employee{
public: string name; string title; double wages void setName(string n) { name = n; } string getName() { return name; } void settitle(string t) { title = t; } string gettitle() { return title; } void setpayment(double w) { wages = w; } double getpayment() { return wages; } private: string name; string title; double wages; };
int main(){ vector
Question
The program presents the user with several options:
Print list of employees
Calculate total wages
Exit application
The user will select one of these options by entering the option's enumerated value (i.e., enter 2 to calculate total wages).
The "Print list of employees" should print each employee name, job title, and associated hourly wages.
The "Calculate total wages" option will iterate through each employee and ask the user to input the total number of hours worked for each employee, multiplying that by the employee's hourly wages, and adding that to the total. After iterating through all employees, the total wages for that week should be displayed.
The "Exit application" will break the application out of its main loop and exit the program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
