Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with a Java program. It needs to have file processing rather than input statements. Purpose: Build an application to calculate an Employees

I need help with a Java program. It needs to have file processing rather than input statements.

Purpose: Build an application to calculate an Employees Net Pay and a Departments Total Payroll Report. This lab will be a file-processing lab based off chapter #7 and object Chapter #8.

Requirements: Build an application to allow a department to calculate each Employees Net Pay and the Departments Total Payroll Report. First, the application will read information from the input file (Payroll.txt). The app reads for each employee (name, marital status, dependents, gross pay) into class array. Then the application calculates gross pay and writes each Employees Full Name and Payroll Information to the output file (Pay Report.txt) (see both inputs and outputs listed in the tables below).

Assumptions:

1. Assume your department has 10 employees (or less).

2. Calculate Deductions a. Federal Tax Amount ($) = Gross Pay * Federal Tax Rate (To calculate federal tax rate use the appropriate Tax Table (Married or Single) to determine correct Federal tax rate based on yearly gross pay.) b. FICA (Social Security) Amount ($) = 7.65% of Gross Pay c. State Tax = 3.07% of Gross Pay d. Medical = Dependent * $150 3. Net Pay = Gross Pay Deductions Language: JAVA Techniques: Your successful program will implement the following program techniques: 1. Class and Object-Oriented Processing 2. Arrays and Array Processing (Arrays will hold employee information)

3. Methods (Most of your process should be in class-member methods)

4. Decisions (For determining Federal Tax Rate) 5. Loops (For processing each employee)

6. Files Processing (Input file = Payroll.txt Output file = Pay Report.txt)

PAYROLL.TXT:

Smith,Seth,M,3,6080.00, Jones,Adam,S,2,24080.00, Davis,Chris,M,2,16000.00, Machado,Manny,S,1,12080.00, Hardy,J.J.,M,5,10760.00, Schoop,Jon,S,1,13408.00, Rickard,Joey,S,1,5600.00, Walker,Chris,M,3,14880.00, Trumbo,Mark,S,1,12960.00, Joseph,Caleb,M,3,16000.00

image text in transcribed

image text in transcribed

Thank You!

Data Requirements Input Emplovee InfoInput File Pavroll.txt Fields Data-Tvpe Example First Name: Last Name: Marital Status Strin Strin Char (M)arried (S)ingle) Double Integer Seth Smith Monthly Gross Pay Dependents 6800.00 Processes Read Input Record Calculate Deductions Calculate Federal Tax Calculate FICA (SS Calculate State Tax Calculate Medical Calculate Net Pa Write Out Records Output Output File PayReport.txt output Format see below Emplovee's Full Name Gross Pa Net Pay Total Deductions Federal Tax FICA State Tarx Medical Department Totals Gross Pa Net Pa Total Deduction Federal Tax FICA State Ta:x Medical

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_2

Step: 3

blur-text-image_3

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

Database And Expert Systems Applications 23rd International Conference Dexa 2012 Vienna Austria September 2012 Proceedings Part 1 Lncs 7446

Authors: Stephen W. Liddle ,Klaus-Dieter Schewe ,A Min Tjoa ,Xiaofang Zhou

2012th Edition

3642325998, 978-3642325991

More Books

Students also viewed these Databases questions

Question

=+Is the sex appropriate for the audience?

Answered: 1 week ago