Calculate how much to pay their hourly employees

Assignment Help C/C++ Programming
Reference no: EM132104914

Problem Description

Wombat Corporation needs a GUI program to calculate how much to pay their hourly employees.

The US Department of Labor requires that employees get paid time and a half for any hours over 40 they work in a single week. For example, if an employee works 45 hours, they get 5 hours of overtime, at 1.5 times their base pay.

The Commonwealth of Virginia requires that hourly employees be paid at least $8.25 an hour. Wombat Corporation policy states that they will pay a maximum of 60 hours and a minimum of 4 hours per week.

Specifications

Write a program that will allow users to enter an Employee's ID Number, Base Pay amount, and the Hours Worked for a particular week. This information will be added to a list of employees showing the entered information and the paycheck amount. So the list would look something like this after a couple of entries:

(Note: This is an example. You are not required to make your output look exactly like this.)

Base Pay and Pay Amt must be formatted like currency. Hours Worked must show 2 decimal places.

Use a Border Pane for your program.

The Center Region is where the table of information will be displayed.

The Top Region contains fields for the user to enter employee data and an Add button. Pressing Add to insert the information into the table in the Center Region.

The Bottom Region should have a field containing the total Pay Amt for all entries. For the example above, an amount of $1,275.81 would be displayed.

The Right Region should have 4 vertical Radio Buttons labeled Raises. The 4 buttons should be labeled, from top to bottom, 1%, 2%, 5%, and Reset. If the user selects any of the first 3 buttons, you will need to increase each Pay Amt by that percentage.

If the user pressed the 5% Radio Button, the example above would look like:

and the Total would be $1,339.61.

If the user clicks Reset, the amounts go back to their original values.

Hint: Store the values entered in an Array or ArrayList and rebuild a GridPane accordingly to show the information.

Error Checking

Inputs

Make sure all fields are numbers.

Employee Number should be an Integer.

Base Pay should not be below the minimum wage allowed.

Hours Worked should not be less than 4.

All fields need to be correct when the Add button is pressed.

Use a Try-Catch blocks where you deem appropriate.

Commenting

Use the generated flower box in BlueJ to provide a description of the Class and your name.

For @version - Enter the date you started writing the class in MM/DD/YYYY format.

A single line comment on each element needed for the assignment.

Significant variables descriptions.

No "loop" variables. a, b, c, x, y, z, etc.

Reference no: EM132104914

Questions Cloud

Introduces the child to the amazing animals of the world : It's required to build a system that introduces the child to the amazing animals of the world whilst teaching them new words in a fun way.
Implement insertion sort and selection sort algorithms : For a given input array, write separate functions to implement insertion sort and selection sort algorithms and perform the below tasks.
Basis for capital budgeting resolutions and determinations : Between cash flows or costs and income, what is the basis for capital budgeting resolutions and determinations?
Design a web page to provide a metric conversion guide : Design a web page to provide a metric conversion guide for college students.
Calculate how much to pay their hourly employees : Wombat Corporation needs a GUI program to calculate how much to pay their hourly employees.
What is the current price of aa co : It is expected that dividends will grow at 4% indefinitely. Assuming a discount rate of 12%, what is the current price of AA Co.?
What is taggart constant growth : Based on this information, what is Taggart's constant growth rate in dividends
Write a c program to achieve the indeed compression : Your C program needs to compress a text file. The file 'text.txt' contains the text to be compressed and this file contains lower case letters only.
The costs of environmental protection than poor countries : Briefly, according to Shue, why should rich countries bear more of the costs of environmental protection than poor countries?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd