// Declaration of the class Contract
// The same as contrct2.h just in chapter 10.
// File: contrct4.h
#ifndef CONTRACT_H
#define CONTRACT_H
class Contract
{public:
Contract(int ID, int sqFootage, int numDesks, int numDays);
/*
Purpose: to instantiate (create) an instance of the class 'contract'.
Goal: a new instance of class 'contract' now exists
Receives: ID, Square Footage, Number of Desks, Number of Days (all Integers)
Returns: NONE
*/
Contract();
/*
Purpose: to instantiate (create) an instance of the class 'contract' with
default values.
Goal: a new instance of class 'contract' now exists
Receives: NONE
Returns: NONE
*/
void ChangeSquareFootage(int sqFootage);
/*
Purpose: To change the value of the square footage data member
Goal: The square footage data member has a new value
Receives The New Square Footage (an integer)
Returns: NONE
*/
void ChangeNumDesks( int numDesks);
// Design comments go here.
void ChangeNumDays( int numDays);
// Design comments go here.
void ChangeID( int ID);
// Design comments go here.
int ProvideSquareFootage();
/*
Purpose: To Return the Square Footage of an Office
Goal: The Square Footage is returned
Receives: NONE
Returns the Square Footage (an integer)
*/
int ProvideNumberOfDesks();
// Design comments go here.
int ProvideNumberOfDays();
// Design comments go here.
int ProvideID();
// Design comments go here.
double ProvidePerWeekCharge ();
/*
Purpose: To calculate and return the per week charge for an office
Goal: The per week charge is returned
Receives: Square Footage, Number of Days Per Week, Number of Desks (all
integers)
Returns: The Per Week Charge (a double)
*/
private:
int contractID;
int squareFootage;
int numberOfDaysPerWeek;
int numberOfDesks;
};
#endif