Question: i completed my two file my . cpp and my . h file i just need my main file on task 1 , 2 ,
i completed my two file my cpp and my h file i just need my main file on task i got the hours and amount of people but not the problem solving where it convert i look through my code but doesnt seem any code command that can assist me here are three files and also output of what my proffesor want
hrsToDayscpp
#include
#include "NumDays.h
using namespace std;
int main
Definitions: Local Variables and Constants
const int NUM ;
int numEmp;
double hrsworked;
NumDays empNUM;
NumDays sumEmployees;
Program Statements
cout "Project Uh prepared by
endl endl;
TASK : prompt for employee hours and display the days
code goes here
cout "How many employee will be processed?";
cin numEmp;
for int i ; i numEmp; i
cout "Enter hours worked by Employee# i :;
cin hrsworked;
TASK : report total days worked by all employees
code goes here
TASK : use overloaded and operators and display results
code goes here ignore it
return ;
NumDays.h
#ifndef NUMDAYSH
#define NUMDAYSH
class NumDays
private:
do not modify private data members
double hours;
double days;
static double totHrs;
public:
all class member functions are inline
except for overloaded operators and
and the static function getTotDays
NumDays
hours ; days ;
void sethoursdouble h
hours h;
setDayshours ;
totHrs hours;
double getHours const
return hours;
void setDaysdouble d
days d;
double getDays const
return days;
static double geTotDays;
NumDays operatorNumDays& right;
;
#endif
NumDayscpp
Implementation file for the NumDays class
#include "NumDays.h
#include
using namespace std;
double NumDays::totHrs ;
double NumDays::geTotDays
return totHrs ;
NumDays NumDays::operatorNumDays& right
NumDays temp;
temp.sethourshours right.getHours;
temp.setDaysdays right.getDays;
return temp;
ICIUsersShafie SheikhOneDrive Tarrant Coun...
Project Uh prepared by
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
