Professional Documents
Culture Documents
1. Implement a C++ program that defines a class for employees, including a constructor to
initialize employee details. Calculate and display the total salary (basic salary + bonus)
for each employee.
2. Janani the officer in City union bank is responsible for creating new accounts to its
customers.Initially she will open the zero balance account by default.After one
month she has to submit the account statement of the customers she has opened
accounts to the circleoffice.Can you help her with a programming logic which does
the task?
4. Write a C++ program to demonstrate function overloading for the following prototypes.
add(int a, int b) add(double a, double b).
5. Create a class called Rectangle with attributes length and width. Implement constructors
to initialize the object and a destructor to display a message upon object destruction.
7. Consider a scenario where you are tasked with developing a system for a library. The
system should handle books, authors, and library patrons. Assume that each book has a
title, author, and availability status, each author has a name and a list of written books,
and each library patron has a name and a list of borrowed books. Implement a simple
console-based application for this scenario using constructors.
8. Develop an interaction diagram for online shopping and ordered sequence of events in a
sequence diagram.