Indira Gandhi National Open University (IGNOU) 2009 B.C.A Computer Application CS-72P-S3 : C++ and Object Oriented Programming , e' - Question Paper
SET-3
BACHELOR IN COMPUTER APPLICATIONS (BCA) Term-End Practical Examination 02840 June, 2009
CS-72P : C++ AND OBJECT ORIENTED PROGRAMMING
Time allowed : 2 hours Maximum Marks : 100
(Weightage : 15%)
General Instructions :
ft) 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 Daymonth using C++. The Daymonth class stores the 40 day and month of current year in two variables. (For example 5th March 2009 will be stored as dd = 5 and mm = 3). This class has a function to find the day of the year. (For example, 5th March is 31 + 28 + 5 = 64th day of year 2009). The class also has function
to print the date stored in the object. Implement the class with suitable constructor, functions and member variables.
2. Design and implement the following class hierarchy using C++ : 40
Student
Under Graduate Graduate
3 years Bachelor 4 years Engineering Full time Part-time Degree Degree
Your implementation of class hierarchy should include :
Member variables for each of the class in the class hierarchy.
One constructor for every class.
A polymorphic function that displays the details of a student object.
- o O o -1
Attachment: |
Earning: Approval pending. |