Write a program to calculate the net pay of an employee. Input the basic pay, pass...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program to calculate the net pay of an employee. Input the basic pay, pass basic pay to user defined function PayCalculate(), calculate net pay and return to main function. Calculate the net pay of an employee should be stored in a file along with its complete detail such as emp_no, emp_name, emp-designation and next time if user want to view it can easily view it. House Rent is 45% of basic pay. Medical Allowance is 5% of basic pay if pay is greater than Rs.4000, it is 7% of basic pay if basic pay is less than or equal to Rs.4000. Conveyance Allowance is Rs.200 of basic pay if pay is greater than Rs.4000, it is Rs.435 of basic pay if basic pay is less than or equal to Rs.4000. Net pay is calculated by adding house rent, medical allowance ,conveyance allowance and basic pay. Write a program to calculate the net pay of an employee. Input the basic pay, pass basic pay to user defined function PayCalculate(), calculate net pay and return to main function. Calculate the net pay of an employee should be stored in a file along with its complete detail such as emp_no, emp_name, emp-designation and next time if user want to view it can easily view it. House Rent is 45% of basic pay. Medical Allowance is 5% of basic pay if pay is greater than Rs.4000, it is 7% of basic pay if basic pay is less than or equal to Rs.4000. Conveyance Allowance is Rs.200 of basic pay if pay is greater than Rs.4000, it is Rs.435 of basic pay if basic pay is less than or equal to Rs.4000. Net pay is calculated by adding house rent, medical allowance ,conveyance allowance and basic pay.
Expert Answer:
Answer rating: 100% (QA)
include include include using namespace std double PayCalculatedouble basicPay int m... View the full answer
Related Book For
Data Structures and Algorithm Analysis in Java
ISBN: 978-0132576277
3rd edition
Authors: Mark A. Weiss
Posted Date:
Students also viewed these programming questions
-
Write a program to calculate the net pay of an employee. Input the basic pay, pass basic pay to user defined function PayCalculate(), calculate net pay and return to main function. Calculate the net...
-
Write a program to compute word ladders where single-character substitutions have a cost of 1, and single-character additions or deletions have a cost of p > 0, specified by the user. As mentioned at...
-
Write a program to print Hello World 25 times without writing a single line in the main function except system(pause).
-
E. Blood Flow Through the Kidneys Trace blood flow through the kidneys. Start at the renal artery and number the blood vessels in sequence. afferent arteriole arcuate artery arcuate vein efferent...
-
During 2016, Thomas Company entered into two transactions involving promissory notes and properly recorded each transaction. 1. On November 1, 2016, it purchased land at a cost of $8,000. It made a...
-
In flow over a surface velocity and temperature profiles are of the forms u(y) = Ay + By2 Cy3 and T(y) = D + Ey + Fy2- Gy3 where the coefficients A through G are constants. Obtain expressions for...
-
What are the differences between a firms physical assets and its intellectual assets? Why is it important for entrepreneurs to understand these differences?
-
Mill Corporation acquired 100 percent ownership of Roller Company on January 1, 20X8, for $128,000. At that date, the fair value of Rollers buildings and equipment was $20,000 more than the book...
-
8.The following data is available: Country Y currency Dollar Country X currency Peso Country Y interest rate 1% per year Country X interest rate 3% per year Country X expected inflation rate 2% per...
-
Suppose that there are p = 4 quality characteristics, and in correlation form all four variables have variance unity and that all pairwise correlation coefficients are 0.9. The in-control value of...
-
An asset follows a binomial model every six months (length of each period). The current price is 60. the US risk-free rate is 1% and the volatility of the asset is 30% per annum. What is the early...
-
What are the zeros of the polynomial function x 8x+15 +
-
What is the harm of holding single stories in education?
-
2. (a). (b) An angle-modulated signal is given by x(t) = 4 sin (2106t + 60 sin 210+) (i) Find the instantaneous frequency of the signal in Hertz. (ii) Find the frequency deviation Af in Hertz. (iii)...
-
Is education level also considered to be a diversity factor in business?
-
What dollar amount will Gottsbucks show as an asset on its December 31, 2018 Balance Sheet for the Selfie Stick stock, if it owns 10% of the stock of Selfie Stick, and the shares are treated as a...
-
Robot vacuums are learning to avoid dog poop In the lab, robots are engineered for mind-blowing displays of perception and agility, like Boston Dynamics' parkour performing bot and the humanoid...
-
One hundred pounds of water at atmospheric pressure are heated from 60F to 200F. What is the enthalpy change? The internal energy change? Why is the difference between the internal energy change and...
-
Suppose we want to add an extra operation, deunion, which undoes the last union operation that has not been already undone. a. Show that if we do union-by-height and finds without path compression,...
-
What is the worst-case running time of Dijkstra's algorithm when implemented with d-heaps (Section 6.5)?
-
Construct a permutation of 20 elements that is as bad as possible for quicksort using median-of-three partitioning and a cutoff of 3.
-
Given the four criteria necessary for a sale to be complete, which of the following is not one of those conditions? 1. Delivery has occurred or services rendered. 2. Cash has been collected. 3. The...
-
What is the difference between a business and a pure charity? Between a business and a governmental agency?
-
What is an integrated delivery system?
Study smarter with the SolutionInn App