Indira Gandhi National Open University (IGNOU) 2009 B.C.A Computer Application CS-72P-S4 : C and Object Oriented Programming , e' - Question Paper
SET-4
BACHELOR IN COMPUTER APPLICATIONS (BCA) Term-End Practical Examination June, 2009 01737
CS-72P : C++ AND OBJECT ORIENTED PROGRAMMING
Time allowed : 2 hours Maximum Marks : 100
(Weightage : 15%)
(i) There are two compulsory questions in this paper of 40 marks each. Rest 20 marks are for viva-voce.
(ii) You must write the appropriate main( ) function and test your programs.
(iii) Write/Print the programs, input and results on your answer-script.
(iv) Make and state suitable assumptions, if any.
1. Design and implement a class twoDarray using C++. The class stores data in a two 40 dimensional array of size 3x3. The class should have a constructor that assigns input values to the array elements. The class should have two additional functions - first to output the array values - element by element and second to search a specified value in
the array. Implement the class with appropriate member variables and functions. You must write the appropriate main( ) function to demonstrate all the functions of the class.
2. Design and implement the following class hierarchy using C++ : 40
Employee
Full-time Part-time i ,_I-
Manager Daily Hourly
Wagers Wagers
Your implementation should include the following :
The classes should have member variables.
The classes should have one constructor.
It should have a polymorphic function to print the details of employees.
-oOo-
Attachment: |
Earning: Approval pending. |