Your company has accepted a request to write a program that will calculate the payroll for a company that pays its employees every week. The company also wants to be able to store the report in a text file that will be opened by pressing a button in the program. Your supervisor has assigned you to write the program.

The program must contain the following:

A WeeklyEmployee that contains:

Properties:

  • A non-changing public variable named weekly withholding allowance = 77.90;
  • A non-changing public variable named FICA tax rate = 0.0765;
  • name //name of the employee
  • hours // number of hours worked
  • rate // hourly rate of pay
  • exemptions // number of exceptions

Constructors

  • Takes in no arguments and initializes the properties to default values
  • Takes in all of the changing properties and assigns property values based on passed in values
  • Accessors
  • name
  • hours
  • rate
  • exemptions
  • filing status
  • gross pay (hours above forty hours are paid at a rate of time and a half)
  • income tax // per 2016 circular E
Gross pay – (exemption amount * number of exemptions) = Taxable income
((Taxable Income – subtract) * %) + Add = Income Tax

FICA tax
Gross pay * FICA rate = FICA tax

Modifiers

  • name
  • hours
  • rate
  • exceptions
  • filing status

A Main Form:

  • A List that stores all the employees in the file
  • Save Report to File button
  • Exit button
  • Output label

The program should follow the best programming practices (form centered on the screen, able to minimize but not maximize, form title, accept button, cancel, etc . . .)

Use the camel-case naming convention for all of the variables you create.

Put your name and the date as a comment in your source file(s).

Copy the following two questions and your answers as comments at the bottom of your code.

/*
What concepts did you find challenging about this program? (Please be specific)

What did you learn in this program? (Please be specific)
*/

When you have completed your assignment and before submitting your file:

Test and run your application

The program should follow the best programming practices (form centered on the screen, able to minimize but not maximize, form title, accept button, cancel, etc . . .)

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.