Course Solutions Uncategorized (Solved) : Need Help C Program Ifndef Homework14includehomework14employeeh Define Homework14includeho Q29009220 . . . .

(Solved) : Need Help C Program Ifndef Homework14includehomework14employeeh Define Homework14includeho Q29009220 . . . .

 

Need help with this c++ program.

#ifndef HOMEWORK14_INCLUDE_HOMEWORK14_EMPLOYEE_H_
#define HOMEWORK14_INCLUDE_HOMEWORK14_EMPLOYEE_H_
#include <string>
#include <iostream>
#include <set>
#include <vector>
#include <queue>

class Employee {
public:
/***
* Constructor needs employee name
*/
explicit Employee(std::string name);
/***
* return a copy of the name
*/
std::string getName() const;
/***
* return the pay due
*/
virtual double getPay() const = 0;
/***
* create a string from employee information
* should output
* “Name = <name_>”
*/
virtual std::string toString() const;

private:
/***
* name of the employee
*/
std::string name_;
friend std::ostream &operator<<(std::ostream &, constEmployee &e);
};
std::ostream &operator<<(std::ostream &, constEmployee &e);

class HourlyEmployee : public Employee {
using Employee::Employee;

public:
virtual double getPay() const;
void setHourlyRate(double rate);
void setHoursWorked(double hours);
/***
* create a string from employee information
* should output
* information as in the test result file “
*/
std::string toString() const;

private:
double hourly_rate_;
double hours_worked_;
friend std::ostream

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post