Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem: Build a GUI application that would allow the user to calculate an Employees Gross Pay. The user will enter the employees id number, pay-period

Problem: Build a GUI application that would allow the user to calculate an Employees Gross Pay. The user will enter the employees id number, pay-period end-date and hours worked. The program will read the input file to obtain the employee name and hourly pay rate. The program then calculates and displays the Employees Full Name and Gross Pay for the pay period (see both inputs and outputs listed in the table below).

Assumptions: Gross Pay = (Regular hours* pay rate) + (Over Time hours * pay rate *1.5) Regular hours are less than or equal to 40

Language: JAVA (Object-oriented and UI)

Data Requirements

Input

Fields

Data-Type

User Input

Employee #

String

15

Pay-Period End-Date

String (or Date)

03/13/17

Hours Worked

Double

41.5

Employee File

Employee.txt

Employee #

String

15

Last Name:

String

John

First Name:

String

Smith

Pay Rate

Currency or Double

25.75

Processes

Enter Input

Read Employee File

Calculate Gross Pay

Display Output

Other Processes

Clear

Clear Input /Output control

for the next Employee or To start over

Close / Exit

End the Screen / Application

Output

Employees Full Name

Regular Hours

Over-Time Hours

Regular Pay

Over-Time Pay

Employees Gross Pay

Advanced

12,Adams,Ben,10.00,

10,Johnson,Chris,5.50,

19,David,Larry,10.00,

13,Martinez,Oscar,5.50,

(Input)

(Output)

Emp

#

Employee

Name

Regular

Hours

OT

Hour

Regular

Pay

OT

Pay

Gross Pay

12

Ben Adams

40.0

1.0

$400.00

$15.00

$415.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions