Slip1
Slip2
Write a C++
program to calculate and display the sum of two complex numbers. (Use friend
function and return by object)
Slip3
Slip4
ii.
Display the details of ‘n’ account holders by adding
interest amount where interest rate for Saving account is 5% of balance and
interest rate for Current account is 1.5% of balance.
Slip5
Q.2) Write C++ program to Create two
classes Array1 and Array2 which contains data members as Integer array of a
specified size. Write necessary member functions to accept and display array
elements of both the classes. Find and display smallest number from both the
array. (Use Friend function and Memory Management operators)
Slip6
Slip7
Slip8
Slip9
Slip10
Slip11
Slip12
Q.1) Write a C++ program to acceptlength and width of a rectangle. Calculate and display perimeter as well asarea of a rectangle by using Inline function.
Slip13
Q.1) Write a C++ program to calculate
area of cone, sphere and circle by using function overloading.
Slip14
Slip15
ii.
Calculate Subject wise total marks obtained.
Check whether student has passed in
Internal and External Exam of each subject. Also check whether he has passed in
respective subject or not and display result accordingly.
Slip16
Q.2) Define a class Product that
contains data member as Prod_no, Prod_Name, Prod_Price. Derive a class
Discount(discount_in_Percentage) from class Product. A Customer buys ‘n’
products. Accept quantity for each product , calculate Total Discount and
accordingly generate Bill. Display the bill using appropriate Manipulators.
Slip17
Slip18
characters,
words and lines from a file. Find the number of occurrences of a given word present in a file.
Slip19
Slip20
Slip21
Q.1) Write a C++ program to swap two integer values and two
float values by using function template.
Slip22
Slip23
Slip24
Slip25
Slip26
Q.2) Write a C++ program which will
accept ‘n’ integers from user through command line argument. Store Prime numbers
in file “Prime.txt” and remaining numbers in “Others.txt”.
Slip28
Q.2) Create a base class Media.
Derive two different classes Book (Book_id, Book_name, Publication, Author,
Book_price) and CD (CD_title, CD_price) from Media. Write a C++ program to accept
and display information of both Book and CD. (Use pure virtual function)
Slip29
Slip30