Cs 72 (p)s8
Upcoming SlideShare
Loading in...5
×
 

Cs 72 (p)s8

on

  • 528 views

 

Statistics

Views

Total Views
528
Views on SlideShare
528
Embed Views
0

Actions

Likes
0
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Cs 72 (p)s8 Cs 72 (p)s8 Document Transcript

  • No. of Printed Page : 1 SET-8 BACHELOR IN COMPUTER APPLICATIONS (BCA Revised) Term-End Practical Examination 00356 June, 2011 CS-72P : C++ AND OBJECT ORIENTED PROGRAMMINGTime allowed : 2 hours Maximum Marks : 100 (VVeightage : 15%)General Instructions :(i) There are two compulsory questions in this paper of 40 marks each. Rest 20 marks are for the 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 "line-segment" using C++. The class stores the information 40 of the two end points of the line segments using x and y dimensions. The class should have a constructor and a function that calculates the length of the line segment. Also implement the appropriate main( ) function to demonstrate the constructor and other function of the class.2. Consider the following hierarchy along with suggested data members of classes : 40 Programme • Programme Code • Programme Name • Duration • Fee per Semester Face to Face Programme Distance Learning Programme • Department • Number of study centers • Number of classrooms Design and implement the classes in the hierarchy using C++. You may add more data members in the classes, if needed. You may include at least one constructor in classes, if required. Also implement a function print-programme-info( ) that prints the details of the related object. You should demonstrate polymorphism using the print-programme-info( ) and appropriate main( ) function.CS-72P/ S8 1 1,000