0% found this document useful (0 votes)
4 views5 pages

Employee Class Implementation Guide

The document discusses creating an employee class with name and number, functions to get and display data, and a program to input data for up to 100 employees and print it out.

Uploaded by

Sachin Kamboj
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

Employee Class Implementation Guide

The document discusses creating an employee class with name and number, functions to get and display data, and a program to input data for up to 100 employees and print it out.

Uploaded by

Sachin Kamboj
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

Aim/Overview of the practical:


i. Create a class called employee that contains a name (an object of class string) and an employee number (type
long). Include a member function called getdata() to get data from the user for insertion into the object, and another
function called putdata() to display the data. Assume the name has no embedded blanks.

ii. Write a main() program to exercise this class. It should create an array of type employee, and then invite the user
to input data for up to 100 employees. Finally, it should print out the data for all the employees...

2. Task to be done:

I.
II.
7. Output:

I.
II.

9. Learning outcomes (What I have learnt):

1.

2.
3.

4.

5.

Evaluation Grid (To be created as per the SOP and Assessment guidelines by the faculty):

Sr. No. Parameters Marks Obtained Maximum Marks


1.
2.
3.

You might also like