You have been hired by up and coming company Gekko & Co. to create a pay...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You have been hired by up and coming company Gekko & Co. to create a pay stub calculator for their employees. Their employees are paid only once per month. The pay stub will show take-home pay for each pay period after withholdings for taxes and retirement fund. Gekko would like your program to read the following input for an employee: 1. Employee name. 2. Month and year the employee was hired. 3. Hours worked in the pay period (between 0 and 350). 4. Job title, and 5. Hourly pay rate. After reading in these values, your program must perform two kinds of calculation: 1. Number of vacation hours earned. Vacation calculations are based on the number of months worked. and 2. Net wages to be paid. Gekko employees are required to contribute a portion of their pay to their retirement fund each pay period. This retirement fund withholding is taken pre-tax. Tax withholding will then be calculated. Data Members (Fields) Name, anniversary month, anniversary year, hours worked, job title, hourly pay rate, number of months worked, vacation hours, gross pay, retirement withholding, tax withholding, net pay. Two Constructors 1. PayStub(): Default constructor to initialize the data members. 2. PayStub( String name, int anniversary Month, int anniversary Year, int hours, String title, double payRate): Parameterized constructor to initialize the data members. This work is a derivative of "PAI: Meep Inc. Pay Stub Calculator" by Chris Mayfield, 000 James Madison University, used under CC BY. This work is licensed under CC BY by Matthew Magnusson, University of New Hampshire. Member Methods Pay Stub Object Assignment Java 100 Points 3. String getName(): Returns the name of the employee 4. int getMonth(): Returns the anniversary month of the employee 5. int getYear() : Returns the anniversary year of the employee 6. int getHours(): Returns the number of hours worked by the employee 7. String getTitle(): Returns the job title of the employee 8. double getPay Rate(): Returns the hourly pay rate of the employee 9. int numMonthsWorked(): Calculate and return the number of months worked based on the anniversary month and year and the current pay period month and year. Note: The current pay month = 1, current pay year = 2019. 10. double vacationHours() Calculate the vacation hours earned this pay period as the number of months worked times the vacation rate of 8.25 vacation hours per month. Vacation hours are reported to two significant digits. For example, 0.12 or 12.79. 11. double gross Pay(): Calculate gross pay, defined as the hours worked times pay rate. 12. double retHold() Calculate the retirement withholding for the employee, which is defined as the gross pay times the retirement rate of 5.2%. 13. double tax() : Calculate and return the tax withholding for the employee, which is defined as the taxable income (gross pay minus retirement withholding) times the tax rate of 28.0%. 14. double netPay() Calculate the net pay which is gross pay minus retirement minus tax withholdings. 15. void drawLogo(): Print the company logo Gekko & Co. "$" 16. void printInfo(): Print the details of the employee including the gross pay, taxes and net pay. BIG HINT: to match the output in Gradescope for printing gross pay, retirement, tax, and net pay use the following format string with the printf method "%7.2f\n". Otherwise you may have trouble having the spacing match up correctly in output. NOTE: 1. When implementing the Java code, the source file should be named PayStub.java. BY NO SA This work is a derivative of "PA1: Meep Inc. Pay Stub Calculator" by Chris Mayfield, James Madison University, used under CC BY. This work is licensed under CC BY by Matthew Magnusson, University of New Hampshire. Output Gekko & Co. "$" Pay Period: Name: Title: Anniversary: Months Worked: 1/2019 Karin Nadya Computer System Analyst 4/2015 45 months Vacation hours: 371.25 Gross Pay: Retirement: Tax: $7160.40 $ 372.34 $1900.66 Net Pay: $4887.40 Pay Stub Object Assignment Java 100 Points Submission Submit your PayStub.java file to Gradescope before the deadline. You may submit more than one time, the last attempt before the deadline is reached is the one that is graded. Before uploading your program, be sure to complete the following steps carefully: 1. Your input and output should match the input and output test cases exactly, character for character. 2. Make sure all your variables are declared at the beginning of the main method, before any other statements. 3. Check that you have written the proper Javadoc @author and @version tags in the appropriate place. 4. Run Checkstyle and eliminate ALL warnings about your code. (You should be doing this along the way and not just at the end of the assignment.) BY NC SA This work is a derivative of "PA1: Meep Inc. Pay Stub Calculator" by Chris Mayfield, James Madison University, used under CC BY. This work is licensed under CC BY by Matthew Magnusson, University of New Hampshire. Pay Stub Object Assignment Java 100 Points 2. Provide a meaningful Javadoc comment at the top, including @author and @version tags. 3. Write concise comments (using //) wherever required to explain your logic and intuition. Sample Input/Output Input Your program's main method will need to read and store employee information while displaying the prompts exactly as shown in the following example: Enter your Fullname: Karin Nadya Enter your Anniversary Month (1-12): 4 Enter your Anniversary Year: 2015 Enter your hours worked this pay period (0-350): 170 Enter your Job Title: Computer System Analyst Enter your pay rate: 42.12 CC BY NO SA This work is a derivative of "PA1: Meep Inc. Pay Stub Calculator" by Chris Mayfield, James Madison University, used under CC BY. This work is licensed under CC BY by Matthew Magnusson, University of New Hampshire. You have been hired by up and coming company Gekko & Co. to create a pay stub calculator for their employees. Their employees are paid only once per month. The pay stub will show take-home pay for each pay period after withholdings for taxes and retirement fund. Gekko would like your program to read the following input for an employee: 1. Employee name. 2. Month and year the employee was hired. 3. Hours worked in the pay period (between 0 and 350). 4. Job title, and 5. Hourly pay rate. After reading in these values, your program must perform two kinds of calculation: 1. Number of vacation hours earned. Vacation calculations are based on the number of months worked. and 2. Net wages to be paid. Gekko employees are required to contribute a portion of their pay to their retirement fund each pay period. This retirement fund withholding is taken pre-tax. Tax withholding will then be calculated. Data Members (Fields) Name, anniversary month, anniversary year, hours worked, job title, hourly pay rate, number of months worked, vacation hours, gross pay, retirement withholding, tax withholding, net pay. Two Constructors 1. PayStub(): Default constructor to initialize the data members. 2. PayStub( String name, int anniversary Month, int anniversary Year, int hours, String title, double payRate): Parameterized constructor to initialize the data members. This work is a derivative of "PAI: Meep Inc. Pay Stub Calculator" by Chris Mayfield, 000 James Madison University, used under CC BY. This work is licensed under CC BY by Matthew Magnusson, University of New Hampshire. Member Methods Pay Stub Object Assignment Java 100 Points 3. String getName(): Returns the name of the employee 4. int getMonth(): Returns the anniversary month of the employee 5. int getYear() : Returns the anniversary year of the employee 6. int getHours(): Returns the number of hours worked by the employee 7. String getTitle(): Returns the job title of the employee 8. double getPay Rate(): Returns the hourly pay rate of the employee 9. int numMonthsWorked(): Calculate and return the number of months worked based on the anniversary month and year and the current pay period month and year. Note: The current pay month = 1, current pay year = 2019. 10. double vacationHours() Calculate the vacation hours earned this pay period as the number of months worked times the vacation rate of 8.25 vacation hours per month. Vacation hours are reported to two significant digits. For example, 0.12 or 12.79. 11. double gross Pay(): Calculate gross pay, defined as the hours worked times pay rate. 12. double retHold() Calculate the retirement withholding for the employee, which is defined as the gross pay times the retirement rate of 5.2%. 13. double tax() : Calculate and return the tax withholding for the employee, which is defined as the taxable income (gross pay minus retirement withholding) times the tax rate of 28.0%. 14. double netPay() Calculate the net pay which is gross pay minus retirement minus tax withholdings. 15. void drawLogo(): Print the company logo Gekko & Co. "$" 16. void printInfo(): Print the details of the employee including the gross pay, taxes and net pay. BIG HINT: to match the output in Gradescope for printing gross pay, retirement, tax, and net pay use the following format string with the printf method "%7.2f\n". Otherwise you may have trouble having the spacing match up correctly in output. NOTE: 1. When implementing the Java code, the source file should be named PayStub.java. BY NO SA This work is a derivative of "PA1: Meep Inc. Pay Stub Calculator" by Chris Mayfield, James Madison University, used under CC BY. This work is licensed under CC BY by Matthew Magnusson, University of New Hampshire. Output Gekko & Co. "$" Pay Period: Name: Title: Anniversary: Months Worked: 1/2019 Karin Nadya Computer System Analyst 4/2015 45 months Vacation hours: 371.25 Gross Pay: Retirement: Tax: $7160.40 $ 372.34 $1900.66 Net Pay: $4887.40 Pay Stub Object Assignment Java 100 Points Submission Submit your PayStub.java file to Gradescope before the deadline. You may submit more than one time, the last attempt before the deadline is reached is the one that is graded. Before uploading your program, be sure to complete the following steps carefully: 1. Your input and output should match the input and output test cases exactly, character for character. 2. Make sure all your variables are declared at the beginning of the main method, before any other statements. 3. Check that you have written the proper Javadoc @author and @version tags in the appropriate place. 4. Run Checkstyle and eliminate ALL warnings about your code. (You should be doing this along the way and not just at the end of the assignment.) BY NC SA This work is a derivative of "PA1: Meep Inc. Pay Stub Calculator" by Chris Mayfield, James Madison University, used under CC BY. This work is licensed under CC BY by Matthew Magnusson, University of New Hampshire. Pay Stub Object Assignment Java 100 Points 2. Provide a meaningful Javadoc comment at the top, including @author and @version tags. 3. Write concise comments (using //) wherever required to explain your logic and intuition. Sample Input/Output Input Your program's main method will need to read and store employee information while displaying the prompts exactly as shown in the following example: Enter your Fullname: Karin Nadya Enter your Anniversary Month (1-12): 4 Enter your Anniversary Year: 2015 Enter your hours worked this pay period (0-350): 170 Enter your Job Title: Computer System Analyst Enter your pay rate: 42.12 CC BY NO SA This work is a derivative of "PA1: Meep Inc. Pay Stub Calculator" by Chris Mayfield, James Madison University, used under CC BY. This work is licensed under CC BY by Matthew Magnusson, University of New Hampshire.
Expert Answer:
Related Book For
Introduction To Corporate Finance
ISBN: 9781118300763
3rd Edition
Authors: Laurence Booth, Sean Cleary
Posted Date:
Students also viewed these programming questions
-
1. Ignoring the wiring, what is depicted in this photograph? (1) (2) (3) (4) Hot water lines Central vacuum lines Natural gas lines Cold water lines vo.agarNE THIN
-
Wayland Custom Woodworking is a firm that manufactures custom cabinets and woodwork for business and residential customers. Students will have the opportunity to establish payroll records and to...
-
Background: A new ownership group has recently purchased ABC Liquors. You have been hired by the new management team to analyze their sales data for the past year and provide them with insights about...
-
Suppose a city finds that its express highways into the city are congested and it is considering two remedies: (1) imposing a congestion charge on all users of its expressways during the peak periods...
-
Consider the perturbation treatment of the helium configurations 1s3s, 1s3p, and 1s3d. Without setting up the secular equation, but simply by analogy to the results of Section 9.7, write down the 18...
-
Amalgamation Adjustment Account is used for recording A. Capital reserve in the books of the transferee company B. General reserve in the books of the transferee company C. Statutory reserve in the...
-
In its 2014 annual report to shareholders, Johnson & Johnson, a consumerproducts company, reported the following financial results: 1. Revenues increased from \($71.3\) to \($74.3\) billion. 2. Net...
-
Lonyear Corporation has collected the following information related to its December 31, 2014, balance sheet. Prepare the assets section of Lonyear Corporations balancesheet. Accounts receivable...
-
evidence against market efficiency includes a ) failure of technical analysis to outperform the market b ) the random walk behavior of stock prices c ) the inabilty of mutual fund managers to...
-
HealthFull Nurse-Run Clinic: Table 6.2 analyzes appointments that are lost (cannot be scheduled) because of limits to capacity. However, another problem at HealthFull Clinic is cancelled...
-
What defines the term "forensic accounting"? What defines the term "forensic accounting"? Financial statement preparation and analysis The application of accounting principles, theories, and...
-
What matters related to fraud should be communicated to the audit committee?
-
When computer programs or files can be accessed from terminals, users should be required to enter a (an) a. Parity check. b. Personal identification code. c. Self-diagnosis test. d. Echo check.
-
The computer system most likely to be used by a large savings bank for customers' accounts would be a. A batch processing system. b. An online system. c. A generalized utility system. d. A...
-
Provide five examples of actions that board members could take to support effective ERM.
-
For three organizational structure types (entrepre neurial, bureaucratic, adhocracy), briefly describe the likely characteristics of corporate governance.
-
h(x) = So tu du a) Show h(x) has an inverse b) Find () ' (4) (nt inverse function)
-
Should U.S. antidumping laws be stated in terms of average total costs or average variable costs?
-
In order for the M&M irrelevance theorem to hold, what key assumptions must be met?
-
Carla is the CEO of The Superior Sausage Company (a Canadian firm, listed on the Toronto Stock Exchange) and believes that the best way for the company to grow is through acquisitions. She has...
-
Suppose the spot exchange rate is C$1.4665 per 1, while the six-month forward rate is C$1.50 per euro. What will be the profit for an investor who assumes a 100,000 long position in the forward...
-
The comparative financial statements for CompuCircuit Corporation are in the Working Papers. The financial statements have been completed up to the financial analysis section. The following...
-
The comparative financial statements for Advanced Auto Technology, Inc., are in the Working Papers. The financial statements have been completed up to the financial analysis section. The following...
-
Corporate annual reports include a letter from the chief executive officer (CEO). The letter highlights achievements and positive results from the past year. If necessary, it delivers news of...
Study smarter with the SolutionInn App