Practical Problem Index
1. Create class employee with getdata() and putdata() function.
2. Create class account with acc_no and balance member and calculate simple
Interest using class and
object.
3. Create class student with rno, name and marks of five subjects. Display result
of student including
percentage and class(dist, first,second, pass, fail).
4. Develop a clsString having following functionality
- Delete all vowels from string
- Delete specific word from string
- Count number of words
- Convert Uppercase to lowercase
- Check the string wheather it is Palindrome or notC++ Program to find Area of
Rectangle and circle
using constructor.
5. Develop a class for Person and inherit a class student.
6. Write a program to create class A with data member no1, class B with data member
no2 and
class C with member functions Add, Subtract, multiply and divide.
7. Write a program to create class Person with data members (Name, Age). Create a
class
Employee inherited from person with data members (eid, salary). Create a class
Programmer
inherited with no-of-lang known. Show the detail of programmer.
8. In a bank, some customers have savings account and some customers may have taken
a loan from
the bank. So bank always maintains information about bank depositors and borrowers.
Design a Base
class Customer (cid, name, phone-number). Derive a class Depositor(accno, balance)
from Customer.
Again, derive a class Borrower (loan-no, loan-amt) from Depositor.
9. Write necessary member functions to read and display the details of ‘n’
customers.
10. Create a base class Student with id, name and void getStu() function. Derive
class Marks from
student with mark1, mark2, mark3 and void getMarks() function. Create a class
Sports with
spmarks and void getSPMarks() function. Derive class result from Marks and Sports
with avg,
total and show result function.
11. Write a program to add two given numbers(int, int)(int, float)(float,float)
using function
overloading.
12. Create a class shape with area function. Derive rectangle, square and circle
classes from shape
class. Override area function of shape in its derived class.
13. C++ program to overload the binary operator + to add two complex numbers
14. Create two classes, A with private data member v1 and B with private data
member v2.
Increment the value of v1&v2 by 10 using friend function. Use other member function
of your
choice.
15. Write a program to implement Stack operations.
16. Write a program to convert infix to Postfix.
17. Write a program to convert infix to Prefix.
18. Write a program to implement Simple Queue operations.
19. Write a program to implement Circular Queue operations.
20. Write a program to implement Double Ended Queue operations.