Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA PROGRAM MUST USE ARRAYS AND METHODS READ TILL THE END MUST GIVE THE OUTPUT IN TXT file ONLY!!! The Layout for the output is

JAVA PROGRAM MUST USE ARRAYS AND METHODS READ TILL THE END

MUST GIVE THE OUTPUT IN TXT file ONLY!!!

The Layout for the output is also given below !!!!

ONLY USE .io for output file !!!

Write java program to create payroll report based on the following assumptions and requirements:

A company called Data Housing Corp. employs 10 employees, all employees are hourly based, employee who work over than 40 hours are entitled to get paid overtime (1.5 for every hour exceeding 40).

Your program is to calculate:

  1. The Gross income: Gross income = (Rate * hours worked) + over time.
  2. The Overtime: Overtime = number of hours exceeding 40 * Rate* 1.5
  3. State Tax: State Tax = gross * 6%
  4. Federal Tax: fed Tax = Gross * 12%
  5. Union fees: Union fees = Gross * 1%
  6. Net: Net = Gross - (state tax + fed tax + Union fees).
  7. Total Gross for all employees.
  8. Average Gross for all employees.

Directions:

  1. Must use arrays and methods.
  2. Output must be displayed in the following format and sent to an output file:

Data Housing Corp. Payroll

F Name LNameId #Rate/hGrossstate taxfed taxUnion feesNet

============================================= == =

JoeSmithA999$00.00$000.00$000.00$000.00$000.00$000.00

  • The input consists of employee's first name, middle initial, last name, Id ,hours worked, and rate per hour.
  • State tax, Fed tax and Union feespercentagesareconstants.
  • TheFORMATTEDOutput includes all input information and all calculated information such as (gross, net. etc.)
  • Apply any programming applicable building blocks such as: loops, constants, data validation, if, else, switch, arrays, precision etc...
  • Input validation (greater than 0 and less than 60 for hours worked)
  • Document your program.
  • Submit:
  • Program's design
  • Source code.
  • Output in the above format:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

What is liquidation ?

Answered: 1 week ago

Question

Explain the different types of Mergers.

Answered: 1 week ago

Question

What is dividend payout ratio ?

Answered: 1 week ago