Suppose you are hired to write a program for a particular bank.
In this bank, there is the Human Resource Department which gets the
customers, names of the customers, age of the customer, and
customer account number which is an 8-digit number. The Human
Resource department stores these details about a customer and
displays these details. There is another department in this bank
called Finance. The Finance department gets from the customer, the
customer salary and customer income tax. The tax is a number
between 1 and 100. The Finance department also displays the salary
of the customer and the tax of the customer. There is another
department in this bank called Payroll. The Payroll Department
displays all the customer details from the Human Resource
Department. The Payroll Department also displays the customer
salary and tax from the Finance Department. The payroll department
also has a function that calculates the customer net salary which
is salary*tax/100 and displays this salary. Write a C++ program
using classes and inheritance to write the code for this bank.
Treat each department as a class [20]
Suppose you are hired to write a program for a particular bank. In this bank, there is the Human Resource Department whi
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am