Define the following:


//
// Constructor that initializes all components
//
EmployeeRecord :: EmployeeRecord ( const string& name, const string& ss,
double rate )
{



}

//
// Display one EmployeeRecord with labels
//
ostream& operator<< ( ostream& os, const EmployeeRecord& emp )
{





}

//
// Input one employee record from is
//
istream& operator>> ( istream& is, EmployeeRecord& emp )
{




}



//
// Display one EmployeeRecord with labels
//
ostream& operator<< ( ostream& os, const EmployeeRecord& emp )
{
os << "Employee name: " << emp.lastName << endl;
os << "Social security number: " << emp.ssNum << endl;
os << setprecision( 2 ) << setiosflags( ios::fixed );
os << "Pay rate: $" << emp.payRate << endl;

return os;
}

//
// Input one employee record from is
//
istream& operator>> ( istream& is, EmployeeRecord& emp )
{
is >> emp.lastName >> emp.ssNum >> emp.payRate;

return is;
}

Computer Science & Information Technology

You might also like to view...

A(n) ____________________ diagram is used to extend a UML model for a particular domain or platform.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The ________ dialog box displays tabs for each object type and a tab for each open database

Fill in the blank(s) with correct word

Computer Science & Information Technology

If a cell being referenced in a formula has been deleted or moved, it will generate a #VALUE! error

Indicate whether the statement is true or false

Computer Science & Information Technology

Read Mode is a view that is used when you need to read, but not edit, electronic documents

Indicate whether the statement is true or false

Computer Science & Information Technology