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
-
How does the force of friction for a sliding object vary with speed?
-
A lever AB is hinged at C and attached to a control cable at A. If the lever is subjected to a 500-N horizontal force at B, determine (a) The tension in the cable, (b) The reaction at C. 250 mm 200...
-
The following note transactions occurred during the year for Towne Company: Nov. 25 Towne issued a 90 -day, nine percent note payable for \(\$ 8,000\) to Hyatt Company for merchandise. Dec. 7 Towne...
-
Kathleen and Mary (KM) operate a small coffee shop. They produce regular coffee available from many other similar businesses and also produce gourmet coffee for special orders. Their accountant...
-
Magna Crater Enterprises (MCE) of the US exports 60,000 units of computer parts per year to Argentina. It sells them for the equivalent of $60 per unit. Total current cost is $48 per set. MCE is...
-
Consider the process model in Fig. 7.14. This model captures a simplified process for handling applications for mortgages. There are two checks involved. CT1 deals with a check of the financial...
-
A sludge sample was collected after sludge was dewatered from a belt-dewatering equipment, the moisture content was 15%. This sludge sample was further air-dried and measured for its copper content...
-
A multinational company is currently producing goods in China to export to the US,WHATare the risks and strategies this company may be facing in order to deal with the uncertainties of the Trade War...
-
24) The size of a euro call is 125,000. Today, a U.S. importer places an order for machine tools that will arrive in Houston in 60 days, when he must pay 4,000,000 to the German exporter. Assume that...
-
Transaction Deposits or checking account; transaction account; Savings Deposits or savings account; Time deposits;Money Market Deposit Accounts For each service, describe whether it reflects an asset...
-
Im , Incorporated had 6 4 , 0 0 0 shares of common stock outstanding at January 1 , 2 0 2 4 . On March 3 1 , 2 0 2 4 , an additional 1 3 , 6 0 0 shares were sold for cash. Im also had $ 5 , 4 0 0 , 0...
-
A vacancy has arisen and one of the candidates is the daughter of your cousin. Scenario: A vacancy has arisen in the team where you are the financial manager. You will be interviewing people in the...
-
Question 1. The following selected data were taken from the accounting records of Colorado Enterprises: Month May June July August Machine Hours Manufacturing Overhead 46,000 $889,000 60,000 68,000...
-
Using a graphing utility, graph y = cot -1 x.
-
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...
-
Eden Development Company has two competing investments. Proposal A and Proposal B. Proposals A and B have an initial investment of $175,000. The net cash flows estimated for the two investments are...
-
Pyramid Construction Company is planning an investment of \($174,000\) for a bulldozer. The bulldozer is expected to operate for 1,400 hours per year for five years. Customers will be charged \($80\)...
-
Financial statement data is utilized by a variety of user-groups to include a companys board of directors, bondholders, corporate employees and executives, customers, investment advisors, labor...
Study smarter with the SolutionInn App