Write a program that requests the hours worked in a week and then prints the gross...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that requests the hours worked in a week and then prints the gross pay, taxes and net pay according to the given pay rate. Assume the following: a) Overtime (in excess of 38 hours) is paid at 1.5 times the (basic) pay rate. b) Tax rates: 15% of the first £300 20% of the next £200 25% of the next £150 30% of the rest The pay rates should be controlled by a menu, which is displayed at the beginning of the program's execution and should look like this: Enter the number corresponding to the desired pay rate: 1 - 8.50 GBP/hour 9.90 GBP/hour 3 22.40 GBP/hour 30.00 GBP/hour 2- 4 * Choices 1 through 4 are selected by means of an integer number, then the program should request the number of hours worked in a week. Otherwise, the program should terminate. In the test part of your report, specify the results provided by your program for: i) 24 hours at 8.50 GBP/hour; ii) 30 hours at 30 GBP/hour; iii) 55 hours at 9.90 GBP/hour; and iv) the user selects an invalid option from the menu (for example 0 or 7). Write a program that requests the hours worked in a week and then prints the gross pay, taxes and net pay according to the given pay rate. Assume the following: a) Overtime (in excess of 38 hours) is paid at 1.5 times the (basic) pay rate. b) Tax rates: 15% of the first £300 20% of the next £200 25% of the next £150 30% of the rest The pay rates should be controlled by a menu, which is displayed at the beginning of the program's execution and should look like this: Enter the number corresponding to the desired pay rate: 1 - 8.50 GBP/hour 9.90 GBP/hour 3 22.40 GBP/hour 30.00 GBP/hour 2- 4 * Choices 1 through 4 are selected by means of an integer number, then the program should request the number of hours worked in a week. Otherwise, the program should terminate. In the test part of your report, specify the results provided by your program for: i) 24 hours at 8.50 GBP/hour; ii) 30 hours at 30 GBP/hour; iii) 55 hours at 9.90 GBP/hour; and iv) the user selects an invalid option from the menu (for example 0 or 7).
Expert Answer:
Related Book For
Payroll Accounting 2019
ISBN: 978-1259917073
5th edition
Authors: Jeanette Landin, Paulette Schirmer
Posted Date:
Students also viewed these programming questions
-
Carlo buys a machine for his business. The machine costs $250,000. Carlo estimates that the machine will generate a $40,000 cash inflow per year for the next five years. Carlo's cost of capital is 10...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
What has motivated you most since accepting your Omega Nu Lambda nomination to grow in your career development? Give an example
-
1. (a) If the price is $20, what quantity is supplied? (b) If the price is $20, what quantity is demanded? (c) Is there a surplus or a shortage when the price is $20? How many units is this surplus...
-
How can governments use derivatives as a means of reducing investment or borrowing risks?
-
What are the three main techniques used to analyze capital budgeting projects? Discuss the advantages and disadvantages of each method.
-
Massachusetts Casualty Insurance Company decides to enter the leasing business. It acquires a specialized packaging machine for $300,000 cash and leases it for a period of six years, after which the...
-
A series RL circuit is powered by an alternating voltage source oscillating with angular frequency 3.9 rad/s and peak-to-peak voltage 74.0 V. It is connected in series to a 2.5 ohm resistor and a 1.6...
-
A 1.33-cm-diameter metal bar with a 3-cm gage length (l 0 ) is subjected to a tensile test. The following measurements are made in the plastic region: Determine the strain-hardening coefficient for...
-
2. a $250b, I=$500b, G= $350b, MPC-80%; Calculate: a) the multiplier b) the equilibrium level of income c) the equilibrium level of consumption d) the equilibrium level of savings
-
Explain from where a corporation derives its authority.
-
Describe the importance of a multidisciplinary approach to patient care.
-
What were two of the most profound influences in the development of present-day hospitals?
-
Describe various forms of child abuse, how to recognize it, and reporting requirements.
-
Explain the purpose of corporate reorganization and the process of restructuring.
-
ABC Partnership has a profit of $150,000 for the year ended December 31, 2011. The partnership agreement states that profit and losses are to be distributed using salary allowances, interest...
-
A new car sold for $31,000. If the vehicle loses 15% of its value each year, how much will it be worth after 10 years?
-
What are the guidelines for FLSA, in terms of overtime and pay rate?
-
On October 31, 2018, Dolores Goodman quit her job after ten years with Omnivue Optics in Utah. Omnivue Optics pays employees weekly on Fridays. Upon quitting, Dolores had 38.5 hours of vacation...
-
Eugene Torres works in a shared role for Multiglass Computers. He works in both the programming and the research departments for the company; and splits his time equally in both roles. Eugene is paid...
-
Using Program16.m(Houbolt method), solve Problem 11.20. Data From Problem 11.20:- The equations of motion of a two-degree-of-freedom system are given by \(2 \ddot{x}_{1}+6 x_{1}-2 x_{2}=5\) and...
-
Using Program16.m(Houbolt method), solve Problem 11.19. Data From Problem 11.19:- Using the central difference method, find the response of the system shown in Fig. 11.2 when \(F_{1}(t)=10 \sin 5 t\)...
-
Using the Wilson method with \(\theta=1.4\), solve Problem 11.18. Data From Problem 11.18:- Using the central difference method, find the response of the two-degree-of-freedom system shown in Fig....
Study smarter with the SolutionInn App