Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

C++ Program (External)

1. Create 7 employee class with appropriate members demonstrate data hiding to the examiner.

2. Implement function temp to find out maximum among the list enter by the user.

3. Write program to implement person class include two display technique, the formate_displlay() member
function display the person data in a format as per the query responses& report field. Demonstrate the
behavior of the virtual function & overload>> operator non member function display row data.

4. Prepare the class employee with the attribute as emp no, emp name, emp salary. Write the program
that take 10 emp information & sort the employee information as per the salary of employee.

5. Write a program consisting of a function calling each other to calling depth of a 10 give each function &
argument that determine at which level & exception is a throw. Have main catch this exception on will
display which exception is caught.

6. Write a program that count word, line, space from the given source line. write the lines in reverse order

7. Write a program that implement following inheritance. See Fig. A

8. Write the class name ”singleton” & as the functionality in the class as the user can prepared only one
object of a class, it user prepare more the one object of a class singleton, the exception is a ton & the
massage will be display that cant prepared the object of class singleton”.

9. Write program that implement following inheritance. See Fig. B


10. Write the program to overload the binary (=) operator.

11. Write the program that throw& exception in one function & catches it is another function.

12. Prepare the class emp with attribute emp no, emp name, emp annual salary. Write the program that
text 10 employee information & calculate the interest on the annual saving of the employee. (Given
interest rate as per the10% it annual say be between 50000-100000. It annual say be in between 1-2
lack & 30% It annual saving is greater than 2 lacks)20%)

You might also like