Question: Using C++, Create a function template to display a value that is both preceded and followed by 10 asterisks on a line. Create an Employee

Using C++,

Create a function template to display a value that is both preceded and followed by 10 asterisks on a line.

Create an Employee class that contains three data fields: ID number, name, pay rate. Include a constructor to set the data values and an overloaded insertion operator that displays the data fields.

Write a main()function that demonstrates the template that displays the preceding and trailing asterisks and also works with an Employee argument.

Sample Run **********ID#: 8754 Name: John Doe Pay rate: $25.5********** 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!