Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Prgrammning in Java CSCI2010L Programming Il - Lab 6 ACME Payroll Part 1: Create your ideal class structure for following problem The ACME company has

Prgrammning in Java image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

CSCI2010L Programming Il - Lab 6 ACME Payroll Part 1: Create your ideal class structure for following problem The ACME company has asked you to write a payroll program for their hourly employees. Your program must Prompt for employee information on each current ACME hourly employee. This information will consist of the employee name, the employee taxid, and the employee hourly wage. You should store each employee's information in a separate object instance of a suitably named class. Also add a unique employee namber to each employee record (which you should generate when creating new employee records). When the end of employee record input is reached (which is indicated by entering a line from the keyboard containing only a Sl. print the list of employee records in a format lke this Employee Employee Name 1 Tax ID wage 0011 John Smith 11234567 1 10.55 Assume that Employee ID's are 3 digit integers [always print all 3 digits), employee names are always a first name and then a last name and that 15 characters is enough space to print the names. Tax ID's are usually 7 dgits but they may contain non-numeric information sometimes so it would be best to just read and store them as Strings. Wages usually have a fractional part 12 digits), so should be read and stored as doubles. This report should print with aligned columns (as shown in the example program output below). After all the employee records have been entered and printed, now prompt for hours worked inputs. These are then entered as a set of numbers with this format employeeNumber (int) weekNumber (3 or2) hoursWorkedidouble) Use an employee number of zero as indication that all records for this pay period have been entered. Note that it should be possible to enter these records in any order. No assumptions should be made that payroll records are entered in employee number order, or even that payroll records are entered for each employee Employees receive their biweeky paychecks. They are paid their hourly rates for each hour worked; however if they worked more than 40 hours per week, they are paid at 150 percent of their regular wage for those overtime hours that week Now create a way to output the employee's paycheck for two weeks of pa deposited into employee accounts, no actual checks need to be written, but the requires an output listing of all pay distribated for their records. So provide each issued paycheck: y. Since all pay is direct finance department output in this form for

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

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

Discuss the techniques of job analysis.

Answered: 1 week ago

Question

How do we do subnetting in IPv6?Explain with a suitable example.

Answered: 1 week ago

Question

Explain the guideline for job description.

Answered: 1 week ago

Question

What is job description ? State the uses of job description.

Answered: 1 week ago

Question

What are the objectives of job evaluation ?

Answered: 1 week ago

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago