You are on page 1of 1

Individual Assignment-1 (10%)

(Submitted by softcopy, sub.Date=21-23/08/2021)

1. Write a c++ program that compute the Income, Deduction and net payment of
employee for a given salary.
I. Input:- to accept basic salary.
II. Income Tax :- to compute income tax based on the following income tax rule:

No Basic Salary Tax Rate (%) Formula


1 0-600 0% 0
2 601 - 1650 10 % Salary * 0.1
3 1651 - 3200 15 % Salary * 0.15
4 3201 - 5250 20 % Salary * 0.2
5 5251 - 7800 25 % Salary * 0.25
6 7801 - 10900 30 % Salary * 0.3
7 Over 10900 35% Salary * 0.35

III. Income: to calculate income contribution (6 % of basic salary).


IV. Deduction: to calculate total deduction (Total Deduction = Income tax +
Income contribution).
V. Net payment: to calculate net payment (Net Payment = Basic salary - Total
deduction).
VI. Output:- to display Net payment of employee.
2. Write a program that uses the following function to compute the letter grade of a given
result.
I. Input:- to accept result.
II. Grade:- to compute grade.
III. Output:- to display letter grade.

3. Define the class bankAccount to store a bank customer’s account number and balance.
Suppose that account number is of type int, and balance is of type double. Your class should,
at least, provide the following operations: set the account number, retrieve the account
number, retrieve the balance, deposit and withdraw money, and print account information.
Add appropriate constructors.

You might also like