Write a complete C program to calculate total pay which includes net salary and bonus. The...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a complete C program to calculate total pay which includes net salary and bonus. The sample of output is shown in Figure 1. The program is organized into several functions as follows: ● double basic Salary () - Ask the user to enter basic salary. double EPF (double) - To calculate the amount of employee evident fund (EPF) deduction from basic salary. double calculate Bonus (double) - To calculate the amount of bonus. Assume bonus is half of basic salary. void display Total Pay (double, double, double) - To calculate the total pay after EPF deduction and bonus reward. Salary : RM2500 EPF deduction : 10.8 Your total pay is RM2500.00 - RM270.00 + RM1250.00 = RM3480.00 Figure 1 Write a complete C program to calculate total pay which includes net salary and bonus. The sample of output is shown in Figure 1. The program is organized into several functions as follows: ● double basic Salary () - Ask the user to enter basic salary. double EPF (double) - To calculate the amount of employee evident fund (EPF) deduction from basic salary. double calculate Bonus (double) - To calculate the amount of bonus. Assume bonus is half of basic salary. void display Total Pay (double, double, double) - To calculate the total pay after EPF deduction and bonus reward. Salary : RM2500 EPF deduction : 10.8 Your total pay is RM2500.00 - RM270.00 + RM1250.00 = RM3480.00 Figure 1
Expert Answer:
Answer rating: 100% (QA)
C program include double basicSalary double salary double E... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these computer network questions
-
Being flexible can help many areas of an organization's success. For example, a popular flexible work arrangement that many companies offer is working from home on a part-time basis. It usually...
-
The payroll project that follows is the online version of the same project you completed manually in Chapter 7 of your text. For this project, you will use the Cengage Learning General Ledger to...
-
Who is responsible for a Lex Sarah or Lex Maria application coming to the right instance and what do these notifications mean?
-
Holly needs $21,800 worth of new equipment for his shop. He can borrow this money at a discount rate of 11% for a year. Find the amount of the loan Holly should ask for so that the proceeds are...
-
1. Say nothing about the false numbers. Of course, the company will miss the projections and have to come up with a good explanation, but after all, isn't that par for the course among fledgling...
-
The September 2014 bank statement and cash T-account for Terrick Company follow: There were no deposits in transit or outstanding checks at August 31. Required: 1. Identify and list the deposits in...
-
Singh Enterprises has an accounting year to 31 December and uses the straight-line method of depreciation. On 1 January 2006 the business bought a machine for 10,000. The machine had an expected...
-
Your friendly foreign exchange trader has given you the following currency cross rates. The quotes are expressed as units of the currency represented in the left-hand column per unit of currency...
-
Cabaret Corporation produces a single product. Data concerning the company's operations last year appear below: Units in beginning inventory.. Units produced Units sold Selling price per unit....
-
Answer- Mike Greenberg opened Swifty Window Washing Co. on July 1, 2020. During July, the following transactions were completed. July 1 Owner invested $14,200 cash in the company. 1 Purchased used...
-
Pre-lab Questions For problems that require equations and calculations, please show your work 1. What is the unit of heat convenient for work with water in this experiment? (Hint: it's not J] I...
-
(16 points) Let g(x) = 3x4 - 2x + 1. (a) Find the critical points, if any of g(x). (b) Identify all intervals in which g(x) is decreasing. (c) Identify all intervals in which g(x) is concave up.
-
How do multifunctional teams navigate the interplay between autonomy and interdependence, striking a delicate balance between empowering individual agency and fostering collective accountability,...
-
The asset turnover of Brandburg and Associates is 7 . 2 . The total assets of the company are $ 8 8 , 0 0 0 . What were Brandburg and Associates' net sales?
-
Garcel Inc. held unfinished inventory at a cost of $ 8 5 , 0 0 0 with a sales value of $ 1 2 5 , 0 0 0 . The inventory will cost $ 1 0 , 5 0 0 to complete. The normal profit margin is 3 0 % of sales....
-
The pizzeria's cost formulas appear below: Fixed Cost per Cost per Month Pizza Cost per Delivery Pizza ingredients $ 4.50 Kitchen staff $ 5,930 Utilities $ 620 $ 0.40 Delivery person Delivery vehicle...
-
Consider the investor in question 1. Suppose that when the original investment was made, the investor obtained a six-month put option with a strike price $1.28 per . The premium is $.0138 per . The...
-
You work as an operations consultant for a textile company. Your client has a well-established distribution system in the US market. The company has hundreds of stores and four distribution centers....
-
Charlie's Green Lawn Care is a cash basis taxpayer. Charlie Adame, the sole proprietor, is considering delaying some of his December 2012 customer billings for lawn care into the next year. In...
-
Frederick (Freddy) Freeweights (age 42) owns and operates a health club called ''Treadmills West.'' The business is located at 4321 Arnold Street, Alpine, CA 91901. Freddy had the following income...
-
Sherry Hopson owns a retail family clothing store. Her store is located at 4321 Circle Drive, Houston, TX 77001. Her employer identification number is 95- 1234321 and her Social Security number is...
-
Determine the fundamental frequency of a uniform fixed-fixed beam carrying a mass \(M\) at the middle by applying Rayleigh's method. Use the static deflection curve for \(W(x)\).
-
Applying Rayleigh's method, determine the fundamental frequency of a cantilever beam (fixed at \(x=l\) ) whose cross-sectional area \(A(x)\) and moment of inertia \(I(x)\) vary as \(A(x)=A_{0} x /...
-
Using Rayleigh's method, estimate the fundamental frequency for the lateral vibration of a uniform beam fixed at both the ends. Assume the deflection curve to be \[W(x)=c_{1}\left(1-\cos \frac{2 \pi...
Study smarter with the SolutionInn App