Complete the class EmployeeRecord by defining the functions indicated below.
#include
#include
#include
using namespace std;
class EmployeeRecord {
public:
EmployeeRecord () {}
EmployeeRecord ( const string&, const string&, double );
private:
string lastName;
string ssNum;
double payRate;
friend ostream& operator<< ( ostream&, const EmployeeRecord& );
friend istream& operator>> ( istream&, EmployeeRecord& );
};
int main()
{
EmployeeRecord oneEmp( "Johnson", "520-92-5526", 5.90 );
cout << oneEmp;
return 0;
}
//
// Constructor that initializes all components
//
EmployeeRecord :: EmployeeRecord ( const string& name, const string& ss,
double rate )
{
lastName = name;
ssNum = ss;
payRate = rate;
}
You might also like to view...
Answer the following statements true (T) or false (F)
1. It is important in a direct digital signature to perform an outer confidentiality function first and then the signature function. 2. Message authentication protects two parties who exchange messages from any third party, however, it does not protect the two parties against each other. 3. The digital signature function does not include the authentication function. 4. The DSS approach makes use of a hash function. 5. It must be relatively difficult to recognize and verify the digital signature.
An expression that is either true or false is a(n) __________.
a. variable b. condition c. condition d. relational e. none of the above
A file compressed with________ compression can be decompressed with no loss of data
Fill in the blank(s) with correct word
The ____ image format has low color quality and limited detail and is not suitable for printing.
A. GIF B. JPEG C. PNG D. TIFF