Automated Salary Calculation Program and Mini Bank System, Exercises of Computer Programming

The requirements for creating two different computer programs. The first program is an automated salary calculation system for a private company, where the user inputs the basic pay and the system calculates and displays the net pay based on house rent, medical allowance, and conveyance allowance. The second program is a mini bank system in c++ where the user inputs the account type and balance, and the system calculates and displays the interest earned and allows the user to withdraw, deposit, or quit.

Typology: Exercises

2011/2012

Uploaded on 07/13/2012

ekbal
ekbal 🇮🇳

3.3

(4)

46 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
LAB TEST 30th April
Q1:
Mr. X is running a private company and has many workers of different ranks working there.
He pays different allowances to his workers along with the basic pay e.g. house rent, medical
allowance and conveyance allowance. He has an accountant in company who calculates the
net salary of employees manually so the process is slow. Mr. X wants to make a computer
program from you which automate the process. Your program should take basic pay then
calculates and display the net pay. System should repeat the process up till user requests
House rent is 45% of the basic pay
Medical allowance is 2% of basic pay if basic pay is greater than Rs. 5000/- It is 5% of
basic pay if the pay is less than Rs. 5000/-
Conveyance allowance is Rs. 100/- if basic pay is less than Rs. 5000/- It is Rs.150/- if
the basic pay is more than 5000/-
Net pay is calculated by adding all allowances and basic pay
Q2:
You are a software developer and you are asked to implement a program in C++ for a mini
bank system. For implementing this program you have the following given requirements.
You will take amount balance, and account type from the user and program will
figures interest on amount balance that is held in a bank according to the account
type. The amount of interest that money earns in this bank depends on which type of
account the money is in. There are 6 different types of accounts and they earn interest
as follows:
Account Type
Account Description
Interest Earned
1
personal financial
2.3%
docsity.com
pf3

Partial preview of the text

Download Automated Salary Calculation Program and Mini Bank System and more Exercises Computer Programming in PDF only on Docsity!

LAB TEST 30

th

April

Q1:

Mr. X is running a private company and has many workers of different ranks working there. He pays different allowances to his workers along with the basic pay e.g. house rent, medical allowance and conveyance allowance. He has an accountant in company who calculates the net salary of employees manually so the process is slow. Mr. X wants to make a computer program from you which automate the process. Your program should take basic pay then calculates and display the net pay. System should repeat the process up till user requests  House rent is 45% of the basic pay  Medical allowance is 2% of basic pay if basic pay is greater than Rs. 5000/- It is 5% of basic pay if the pay is less than Rs. 5000/-  Conveyance allowance is Rs. 100/- if basic pay is less than Rs. 5000/- It is Rs.150/- if the basic pay is more than 5000/-  Net pay is calculated by adding all allowances and basic pay

Q2:

You are a software developer and you are asked to implement a program in C++ for a mini bank system. For implementing this program you have the following given requirements.  You will take amount balance, and account type from the user and program will figures interest on amount balance that is held in a bank according to the account type. The amount of interest that money earns in this bank depends on which type of account the money is in. There are 6 different types of accounts and they earn interest as follows: Account Type Account Description Interest Earned 1 personal financial 2.3%

2 personal homeowner 2.6% 3 personal gold 2.9% 4 small business 3.3% 5 big business 3.5% 6 gold business 3.8%

 After calculating interest on amount balance according to the particular entered account type you will ask the user that he/she want to withdraw money, deposit money or want to quit  If user selects to withdraw money then you will ask about the money to be withdrawn and system will show the remaining amount balance  If user selects to deposit money then you will ask about the money to be deposited and system will show the remaining amount balance  If user selects to quit, then program terminates  System should repeat the process up till user requests

Q3: