SlideShare a Scribd company logo
1 of 2
Download to read offline
No. of Printed Pages : 2                                                               SET-2
     BACHELOR IN COMPUTER APPLICATIONS (BCA)
                     Term-End Practical Examination
                                                                                   00806
                                       June, 2011
     CS-72P : C++ AND OBJECT ORIENTED PROGRAMMING
Time allowed : 2 hours                                                 Maximum Marks : 100
                                                                          (Weightage : 15%)

General Instructions :
(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 using C + + that stores a real number as integer mantissa   40
     and exponent. For example, the number — 2.345 x 105 will be represented
     as : — 2345 x 102
       Mantissa (Integer) — 2345
                 Exponent 2
     The class should have a constructor that takes integer mantissa and exponent value to
     create the object of the real number class. The class should also include an
     overloaded x (multiply) operator; and a member function that prints the stored number
     as : "Mantissa : — 2345
     Exponent : 2 "

2.   Consider the following hierarchy along with the suggested data members of the            40
     classes :
                                                        Data members
                                                      • Customer ID
                      Telephone Customers             • Customer - Name
                                                      • Credit - Limit
                                                      • Year of becoming customer



       Cellphone Customers                       Land Line Customer
     • Mobile ID                               • Address
     • Internet use limit
CS-72P/S2                                      1                                         P.T.O.
Design and implement the classes in the hierarchy using C + + . You may add more
    data members in the classes. You should include at least one constructor in each class.
    Also include a member function print_customer_info ( ) in each class that prints all the
    information of the object of that class. You should demonstrate polymorphism using
    this print_custormer_info ( ) function and appropriate main ( ) function.




CS-72P/ S2                                     2                                               4,000

More Related Content

Similar to Cs 72 (p)s2

Assignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docxAssignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docx
faithxdunce63732
 
Lecture 3.2.4 C pointer to Structure.pptx
Lecture 3.2.4 C pointer to Structure.pptxLecture 3.2.4 C pointer to Structure.pptx
Lecture 3.2.4 C pointer to Structure.pptx
ravi2692kumar
 
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docxLab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
smile790243
 
Cis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee classCis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee class
sdjdskjd9097
 
Cis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classCis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee class
ccis224477
 

Similar to Cs 72 (p)s2 (20)

SE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUSSE-IT JAVA LAB SYLLABUS
SE-IT JAVA LAB SYLLABUS
 
Cs 72 (p)s5
Cs 72 (p)s5Cs 72 (p)s5
Cs 72 (p)s5
 
Cs 72 (p)s4
Cs 72 (p)s4Cs 72 (p)s4
Cs 72 (p)s4
 
C++ Lab Maual.pdf
C++ Lab Maual.pdfC++ Lab Maual.pdf
C++ Lab Maual.pdf
 
C++ Lab Maual.pdf
C++ Lab Maual.pdfC++ Lab Maual.pdf
C++ Lab Maual.pdf
 
Assignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docxAssignment DetailsYou have learned that some markets are compet.docx
Assignment DetailsYou have learned that some markets are compet.docx
 
Bca 5050 visual programming – practical
Bca 5050   visual programming – practicalBca 5050   visual programming – practical
Bca 5050 visual programming – practical
 
22316-2019-Summer-model-answer-paper.pdf
22316-2019-Summer-model-answer-paper.pdf22316-2019-Summer-model-answer-paper.pdf
22316-2019-Summer-model-answer-paper.pdf
 
Oops 2018
Oops 2018Oops 2018
Oops 2018
 
Mini Project- Dual Processor Computation
Mini Project- Dual Processor ComputationMini Project- Dual Processor Computation
Mini Project- Dual Processor Computation
 
Lecture 3.2.4 C pointer to Structure.pptx
Lecture 3.2.4 C pointer to Structure.pptxLecture 3.2.4 C pointer to Structure.pptx
Lecture 3.2.4 C pointer to Structure.pptx
 
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docxLab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
Lab 3 Cover SheetNameAdders and Two’s ComplementDateGrade .docx
 
Af7ff syllabuslablist
Af7ff syllabuslablistAf7ff syllabuslablist
Af7ff syllabuslablist
 
Course File c++
Course File c++Course File c++
Course File c++
 
Cis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee classCis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee class
 
Cmps 260, fall 2021 programming assignment #3 (125 points)
Cmps 260, fall 2021 programming assignment #3 (125 points)Cmps 260, fall 2021 programming assignment #3 (125 points)
Cmps 260, fall 2021 programming assignment #3 (125 points)
 
Semester ii
Semester   iiSemester   ii
Semester ii
 
Express 070 536
Express 070 536Express 070 536
Express 070 536
 
3rd sem
3rd sem3rd sem
3rd sem
 
Cis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classCis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee class
 

More from Web Developer (20)

Eco 2
Eco 2Eco 2
Eco 2
 
Cs 612
Cs 612Cs 612
Cs 612
 
Cs 611 (p)s4
Cs 611 (p)s4Cs 611 (p)s4
Cs 611 (p)s4
 
Cs 611 (p)s3
Cs 611 (p)s3Cs 611 (p)s3
Cs 611 (p)s3
 
Cs 611 (p)s2
Cs 611 (p)s2Cs 611 (p)s2
Cs 611 (p)s2
 
Cs 611 (p)s1
Cs 611 (p)s1Cs 611 (p)s1
Cs 611 (p)s1
 
Cs 611
Cs 611Cs 611
Cs 611
 
Cs 610
Cs 610Cs 610
Cs 610
 
Cs 601
Cs 601Cs 601
Cs 601
 
Cs 74 (p)s8
Cs 74 (p)s8Cs 74 (p)s8
Cs 74 (p)s8
 
Cs 74 (p)s7
Cs 74 (p)s7Cs 74 (p)s7
Cs 74 (p)s7
 
Cs 74 (p)s6
Cs 74 (p)s6Cs 74 (p)s6
Cs 74 (p)s6
 
Cs 74 (p)s5
Cs 74 (p)s5Cs 74 (p)s5
Cs 74 (p)s5
 
Cs 74 (p)s4
Cs 74 (p)s4Cs 74 (p)s4
Cs 74 (p)s4
 
Cs 74 (p)s3
Cs 74 (p)s3Cs 74 (p)s3
Cs 74 (p)s3
 
Cs 74 (p)s2
Cs 74 (p)s2Cs 74 (p)s2
Cs 74 (p)s2
 
Cs 74 (p)s1
Cs 74 (p)s1Cs 74 (p)s1
Cs 74 (p)s1
 
Cs 74
Cs 74Cs 74
Cs 74
 
Cs 73
Cs 73Cs 73
Cs 73
 
Cs 72
Cs 72Cs 72
Cs 72
 

Cs 72 (p)s2

  • 1. No. of Printed Pages : 2 SET-2 BACHELOR IN COMPUTER APPLICATIONS (BCA) Term-End Practical Examination 00806 June, 2011 CS-72P : C++ AND OBJECT ORIENTED PROGRAMMING Time allowed : 2 hours Maximum Marks : 100 (Weightage : 15%) General Instructions : (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 using C + + that stores a real number as integer mantissa 40 and exponent. For example, the number — 2.345 x 105 will be represented as : — 2345 x 102 Mantissa (Integer) — 2345 Exponent 2 The class should have a constructor that takes integer mantissa and exponent value to create the object of the real number class. The class should also include an overloaded x (multiply) operator; and a member function that prints the stored number as : "Mantissa : — 2345 Exponent : 2 " 2. Consider the following hierarchy along with the suggested data members of the 40 classes : Data members • Customer ID Telephone Customers • Customer - Name • Credit - Limit • Year of becoming customer Cellphone Customers Land Line Customer • Mobile ID • Address • Internet use limit CS-72P/S2 1 P.T.O.
  • 2. Design and implement the classes in the hierarchy using C + + . You may add more data members in the classes. You should include at least one constructor in each class. Also include a member function print_customer_info ( ) in each class that prints all the information of the object of that class. You should demonstrate polymorphism using this print_custormer_info ( ) function and appropriate main ( ) function. CS-72P/ S2 2 4,000