0% found this document useful (0 votes)
7 views

Write A Series of Functions Called ADD To Add Things Together E.G

The document describes writing a program to display employee reports for 4 employees using objects. The program would use setpara() to set attributes like employee ID, bonus, overtime by passing arguments, and displayreport() to output the reports. It also describes writing ADD functions to add different data types like int and float to demonstrate function overloading.

Uploaded by

jagdish750
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Write A Series of Functions Called ADD To Add Things Together E.G

The document describes writing a program to display employee reports for 4 employees using objects. The program would use setpara() to set attributes like employee ID, bonus, overtime by passing arguments, and displayreport() to output the reports. It also describes writing ADD functions to add different data types like int and float to demonstrate function overloading.

Uploaded by

jagdish750
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Assume that object represents an employee report that contains the information about employee id, total bonus, total overtime in a particular year. Use four objects to represent four employees' reports. Write a program that display report information. Use setpara() member function to set report attributes by passing the arguments and member function displayreport() to show the reports according to parameter passed. 2. Write a series of functions called ADD to add things together e.g. int,float and check that the compiler can handle the function name overloading.

You might also like