Docsity

Calculation of Allowances and Net Pay-Database Computer Programming Basics-Lab Assignment, Exercises of Computer Engineering and Programming

Toggle sidebar
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 Calculation of Allowances and Net Pay-Database Computer Programming Basics-Lab Assignment and more Exercises Computer Engineering and 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: