Programming Creating A User Interface Assignment Instructions
Programming Creating A User Interface Assignment Instructions
Page 1 of 3
CSIS 209
potentially different set of consultants. Both phases are considered separate projects, even
though they are governed by the same contract.
The number of hours worked for each employee on each project must be recorded on a weekly
basis. Employees currently log their time using an Excel worksheet. An example of this
worksheet is presented below. Notice that the employee’s supervisor is listed on the worksheet.
A supervisor is currently required to approve his employees’ timesheets by placing his initials
beside his name.
INSTRUCTIONS
For this assignment, you are required to create the GUI for a timekeeping/payroll system for
CMS.
The system should first allow an employee to enter his name and record the time he worked on
each project for a given week. Using the spreadsheet above as a guideline, the system must
allow the user to enter his name and the name of his supervisor. Next, the user must enter the
number of the week for which he is entering time. Assume a maximum of 52 weeks in a year.
Make sure the employee enters only a valid week number.
To record an employee’s hours, the user must enter the name of a client, a client’s contract, and a
project. For each of the seven days in a week, the user must enter hours worked or check a box
that indicates the day is a weekend, a holiday, or a vacation day. If the employee fails to enter
any hours for a day and fails to check the weekend/holiday/vacation box for that day, the system
should warn the user that the given day is missing information. The system should also ensure
that if any work hours are entered for a day, the checkbox for that day should NOT be checked.
Finally, the system should ensure that a user cannot enter more than 24 hours in a single day.
Once the hours are entered, the user should be able to “Submit” his hours by clicking a button
that will calculate his payroll information for the week and display it on the same screen.
Payroll information is calculated as follows:
All employees are paid for hours worked at a rate of $15 US dollars per hour. If the number of
hours worked in the week exceeds 40, the employee is paid time and a half for his overtime
hours. For example, assume an employee works 50 hours during a week, he will receive (40 X
$15) + (10 overtime hours X (1.5 X $15)) = $825.00. If an employee works less than 40 hours in
a week, the system should make note of this fact in a label beside the supervisor’s name. An
example payroll calculation is shown below:
Page 2 of 3
CSIS 209
Payroll information for John Doe for the week ending Week 1:
Page 3 of 3