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

This is lab assignment for Computer Programming course by Anushka Banton at Biju Patnaik University of Technology, Rourkela. It includes: Program, Basic, Pay, Calculate, Display, Repeat, Process, Implement, Developer, Interest, Balance, Withdraw

Typology: Exercises

2011/2012

Uploaded on 07/12/2012

vishv
vishv 🇮🇳

4.4

(8)

32 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
LABTEST30thApril
Q1:
Mr.Xisrunningaprivatecompanyandhasmanyworkersofdifferentranksworkingthere.
Hepaysdifferentallowancestohisworkersalongwiththebasicpaye.g.houserent,medical
allowanceandconveyanceallowance.Hehasanaccountantincompanywhocalculatesthe
netsalaryofemployeesmanuallysotheprocessisslow.Mr.Xwantstomakeacomputer
programfromyouwhichautomatetheprocess.Yourprogramshouldtakebasicpaythen
calculatesanddisplaythenetpay.Systemshouldrepeattheprocessuptilluserrequests
Houserentis45%ofthebasicpay
Medicalallowanceis2%ofbasicpayifbasicpayisgreaterthanRs.5000/‐Itis5%of
basicpayifthepayislessthanRs.5000/‐
ConveyanceallowanceisRs.100/‐ ifbasicpayislessthanRs.5000/‐ ItisRs.150/‐ if
thebasicpayismorethan5000/‐
Netpayiscalculatedbyaddingallallowancesandbasicpay
Q2:
YouareasoftwaredeveloperandyouareaskedtoimplementaprograminC++foramini
banksystem.Forimplementingthisprogramyouhavethefollowinggivenrequirements.
Youwilltakeamountbalance,andaccounttypefromtheuserandprogramwill
figuresinterestonamountbalancethatisheldinabankaccordingtotheaccount
type.Theamountofinterestthatmoneyearnsinthisbankdependsonwhichtypeof
accountthemoneyisin.Thereare6differenttypesofaccountsandtheyearninterest
asfollows:
AccountTypeAccountDescription InterestEarned
1personalfinancial 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: