Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help writing a Java program. Lab 2 Calculate Payroll for Department and Employee Purpose: Build an application to calculate an Employees Gross Pay

I need help writing a Java program.

Lab 2 Calculate Payroll for Department and Employee Purpose: Build an application to calculate an Employees Gross Pay and a Departments Average Pay Report Requirements: Build an application that would allow the end-user to calculate an Employees Gross Pay and the Departments average Gross Pay Report. First, the user will enter each employees name, hours worked and hourly pay rate into parallel arrays. Then the application calculates and displays each Employees Full Name and Payroll Information (see both inputs and outputs listed in the tables below). Assumptions: 1. Assume your department has 10 employees (or less). 2. Gross Pay = (Regular hours* pay rate) + (Over Time hours * pay rate *1.5) a. Regular hours are less than or equal to 40 Language: JAVA Techniques: Your successful program will implement the following program techniques: 1. Arrays and Array Processing (Arrays will hold employee information) 2. Methods (Most of your process should be in methods) 3. Decisions (Enter only hours worked Your application calculates regular and overtime hours) 4. Loops (For processing each employee) Table 1- Data Requirements Data Requirements Input Fields Data-Type Example Employee Info First Name: String Joe Last Name: String Smith Regular Hours Worked Double 55.5 Pay Rate Currency or Double 12.50 Processes Enter Employees Name Enter Regular Hours Enter Overtime Hours Enter Pay Rate Calculate Gross Pay Output (output Format see below) Employees Full Name Hours Pay Rate Employees Gross Pay Department Ave Pay Table 2-Output Format Name Hours Pay Rate Gross Pay Smith, Joe 40 $ 10.00 $ 400.00 Smith, Sally 30 $ 20.50 $ 615.00 Smith, Chris 50 $ 10.00 $ 550.00 Department Average $ 521.67 Deliverables: I. Copy the following into one Microsoft Word document (using same file naming conventional as zip file below): Make sure to follow lab submittal instruction in the checklist 1. Algorithm / Pseudocode 2. Source Code - The printed copies of your files the code that you wrote 3. Screen Print of your running application 4. UML Use Case II. Zip all Java files (complete folder) into one Zip file (not a rar) 1. named YourName-Lab#X i. #X = Lab Number ii. YourName = Your Name iii. (ie Jesse-Lab2) III. In Canvas (All files must be in one Upload) 1. Word document from above (See Section I) (xxx.docx) 2. Zip file (xxx.zip) Assignment Due: Check Syllabus and Canvas

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

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

How do gain-sharing and profit-sharing differ?

Answered: 1 week ago

Question

=+j Explain the relationship between unions and MNEs.

Answered: 1 week ago