Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a java program that is to produce the payroll report for Middle College as displayed below. Your program MUST use arrays to process the

Write a java program that is to produce the payroll report for Middle College as displayed below. Your program MUST use arrays to process the data. Your program will use at least 3 arrays. You will need to read the data from the file payroll.txt. Your progrem must send the report to the screen as wellas to a file named payreport.txt. The data contains the employee number, the number of hours worked, and the employees pay clasa. Use the table below to apply the correct pay rate to the employee. If an employee works more than 40 hours, then they will receive time and a half for eaoh hour of overtime.
Remember you will get partial credit. If you can not read from the file, then you may assign values to the array elements. If you cannot write to a file, make sure you display the results on the screen.
Your program must be structured using Methods
\table[[,Payroll Report,,],[Employee,Hours,Pay,Psy],[Number,Worked,Rste,Amount],[,=,=,],[21212,40,15.00,600.00],[31313,45,20.00,900.00],[Total,85,,1500.00]]
Sample report for data12401
31313,45,2
\table[[PayClass,Pay Rate Per hour],[1,15.00],[2,20.0

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

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

Compute F for the following diagram. 100 100 100 1090 100 100

Answered: 1 week ago