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:
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).
-
Sodium sulfate, Na2SO4 with a mass of 15 g is dissolved in 250 g water. What is the boiling point of the solution? Kb for water = 0.52 C/m a) 100 C b) 100.2 C c) 99.67 C d) 101.2 C c) d) O a) b)
-
What is the relationship between the accounting equation and the double-entry system of recording journal entries?
-
One hundred electrical components each dissipating 25 W, are attached to one surface of a square (0.2 m x 0.2 m) copper plate, and all the dissipated energy is transferred to water in parallel flow...
-
You navigate a ship from a pier to a buoy \(1500 \mathrm{~m}\) northeast of the pier. There you sail to a point \(300 \mathrm{~m}\) south and \(700 \mathrm{~m}\) east of the buoy. What is your...
-
Jaime Company is currently producing 16,000 units per month, which is 80% of its production capacity. Variable manufacturing costs are currently $8.00 per unit. Fixed manufacturing costs are $56,000...
-
a) Risk analysis is the study of the underlying uncertainty of a given course of action and refers to the uncertainty of forecasted cash flow streams, the variance of portfolio or stock returns, the...
-
This assignment requires you to complete the 2022 tax reporting for a fictional woman named Anna Smith. Question 1 T1 - step 4 - line 66 This is Anna's taxable income Answer: Question 2 T1 - step...
-
Monica and Samantha, both South African residents, have been friends since kindergarten. They attended university together and both became successful businesswoman. With the tourism industry booming...
-
The S parameters and the noise parameters of a transistor at 1 GHz are the sources and load impedance is 50 S2, and Vs = 10/30 V $120.05/16 S11=0.6/-170 Fmin = 2.5 dB, I'opt = 0.52145, R = 59 a) Is...
-
XYZ Ltd. Is considering the proposal of buying one of the two machines to manufactures a new product. Each of these machines requires an investment of Rs. 50,000 and is expected to provide benefits...
-
Swifty Company received proceeds of $159800 on 10-year, 8% bonds issued on January 1, 2018. The bonds had a face value of $170000, pay interest annually on January 1, and have a call price of 101....
-
Explain the interdependent nature of stressors, stress, and adaptation. Differentiate the physical and emotional responses to stress, including local adaptation syndrome, general adaptation syndrome,...
-
Trinity, a 51-year-old taxpayer, earned $54,000 in wages. What is the maximum deductible amount of contribution she can make to a 401(k) plan for 2023? Show your calculations.
-
What is the approximate yield to maturity of a 10% coupon rate, $1,000 par value bond which is currently priced at $1,200 with 11 years to maturity? What would be the yield to call if the call can be...
-
Several months have passed and the Managing Partner approved and properly filed the Complaint and properly submitted the Request for Production of Documents that you drafted. In fact, it has been 75...
-
The inner loop of the cubic maximum subsequence sum algorithm performs N(N+1)(N+2)/6 iterations of the innermost code. The quadratic version performs N(N + 1)/2 iterations. The linear version...
-
The larger binary trees in this chapter were generated automatically by a program. This was done by assigning an (x, y) coordinate to each tree node, drawing a circle around each coordinate (this is...
-
Prove or disprove: A perfectly balanced tree forms if the keys 1 to 2k1 are inserted in order into an initially empty skew heap.
-
The most appropriate response to Nkomos Question 1 would be that the present value of future residual earnings is expected to be: A. zero. B. positive. C. negative. Mangoba Nkomo, CFA, a senior...
-
The most appropriate response to Nkomos Question 2 would be that the firms return on equity (ROE ) is: A. equal to the firms cost of equity. B. lower than the firms cost of equity. C. higher than the...
-
Based upon the information in Exhibit 2, the intrinsic value per share of the equity of Jackson Breweries is closest to: A. R97.67. B. R130.22. C. R186.03. Mangoba Nkomo, CFA, a senior equity analyst...
Study smarter with the SolutionInn App