Display an input field called choice to input

Assignment Help Basic Computer Science
Reference no: EM13979608

create an employee time clock in java using netbeans

The timeclock needs to have a Main Screen that displays 4 options:

A) Add New Employee Displays new employee screen

B) Punch In/Out Displays punch in/out screen

C) Report Displays report screen

D) Exit Exits the program

Display an input field called Choice to input one of the four options.

Inputting an incorrect option shall display a prompt indicating that the input was invalid and to try again.

Add New Employee Screen

The add new employee screen shall:

Add a new employee (we will not worry about modifying or deleting.), saving the data to a memory object or file.

o The program shall allow the user to enter the Employee s First and Last Name

o The program shall validate the first and last name entered to ensure they are not blank. (We will assume that everyone has a first and last name.)

o The program shall assign a new employee ID to the employee and display it on the screen.

o The employee ID shall be generated by adding 1 to the largest employee ID already in the employee memory object (or employee.txt data file).

o The program shall allow the user to enter an unlimited number of employees. In console based applications, the system shall prompt Do you want to enter another? (y/n). Entering y shall clear the screen and prompt for another employee. If n , the program shall return to the main screen.

o The employee data shall be saved to a memory object called employee (or file called employee.txt)

o Optional functionality: Check the first and last name to ensure that there are only valid characters. For examples, filter out numbers, punctuation, etc. Commas can cause problems because the data is being saved to comma-delimited files and that can be a headache!

Punch in/out Screen

The punch in/out screen shall:

Save the punch in or punch out date and time of the employee to a memory object (or file).

o The date and time, I for Punched In or O for punched out along with the Employee ID shall be saved to a memory object called timeclock (or file called timeclock.txt).

o The recorded date for punched in and punched out shall be the method for matching corresponding records.

o The program shall test to ensure that there is a Punched in record for the corresponding day before a punched out record is saved. If none is found, prompt the user to enter a punched in time.

o When the user has punched in or out, the program shall display a message indicating that the employee has punched in or out, the employee ID, date and time.

o In console based applications the screen shall display Press any key to continue

o In console based applications the program shall return to the main menu after a key is pressed when the Press any key to continue prompt is displayed.

o Optional functionality: Add the day of the week to the data saved.

Report Screen (Hint: If you are writing a console application, java.io.PrintWriter may be useful.)

The report screen shall:

Allow the user to display a work history report for an individual or for all employees for the two weeks prior to the report request.

o The screen shall display a prompt to enter I for individual employee report, A for all employees report.

o If the selected value is I , prompt the user to enter the employee s ID number.

If I is selected the display shall show the employee s name and ID, list out each day worked in chronological order, the number of hours worked that day and a total number of hours worked in the two week period.

The report shall prompt the user to re-enter an employee ID of it does not exist in the employee file.

Optional Functionality: If the user inputs a nonexistent employee ID more than 3 times, prompt the user and then return to the main screen.

o If the selected value is A , output the information to the console for the past two weeks.

o The end of the report shall display Press any key to continue to return to the main menu.

Reference no: EM13979608

Questions Cloud

Non-linear relationships between two variables : Pearson Correlation cannot be used to identify non-linear relationships between two variables.
What should you set the variable capacitance capacitor : If it is 4 degrees Celsius outside and the tugboat is moving toward the cliffs at 24.4 m/s and you have an LRC circuit with a 12.5 micro Henry inductor what should you set the variable capacitance capacitor at (in Farads) to get the best signal?
Prepared extended abstract for thermo fluids laboratory : Note that before each Lab, all of you have to come prepared to the Lab with a 1-page Extended Abstract giving details on: The experiment you would be doing
Nutritional information on restaurant menus : (a) Find the probability that all four adults are very confident in the nutritional information on restaurant menus. (b) Find the probability that none of the four adults are very confident in the nutritional information on restaurant menus.
Display an input field called choice to input : Inputting an incorrect option shall display a prompt indicating that the input was invalid and to try again
What is its maximum speed of vibration : The human eardrum responds to sound by vibrating. If the eardrum moves in simple harmonic motion at a frequency of 4.8 kHz and an amplitude of 0.10 nm (roughly the diameter of a single hydrogen atom), what is its maximum speed of vibration?
What caused them to change during this time : How long were Robinson's operating cycles and cash conversion cycles in each of these years? What caused them to change during this time?
Corrected mean and corrected standard deviation : The mean and the standard deviation of a characteristics of 100 items were found to be 60 &10 respectively at the time of calculations two items were taken as 5 & 45 instead of 30 & 20.
How does your brain interpret this information : Suppose you look at a 190-cm-tall friend who is standing 7.0m in front of you. Assuming your eye functions like a pinhole camera, what will be the height, in mm, of your friend's image on your retina?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Review the wbs and gantt chart you created for tasks

Review the WBS and Gantt chart you created for Tasks Propose three to five additional activities that would help you estimate resources and durations. Write a one-page paper describing these new activities.

  Introduction to algorithms

All problem / exercise numbers are from the 3nd edition of Introduction to Algorithms (the 1st and 2nd editions are different!) Note the difference between problems and exercises!

  Hat does mbsa do to check for weak local account passwords

hat does MBSA do to check for weak local account passwords?

  Give a big-oh characteristics in terms of n

Give a big-Oh characteristics in terms of n, of the running time of the loop method for 1) Algorithm loop2(n):

  Describe how host-based intrusion detection works

Describe how host-based intrusion detection works, briefly contrasting it with network-based intrusion detection. Explain three types of threats against which HIDS is particularly effective.

  Standardize programming between many processor platforms

Do you think the java virtual machine is a good way to standardize programming between many processor platforms? Explain your view with details.

  Identify a recent moral dilemma or ethically questionable

Identify a recent moral dilemma or ethically questionable situation relating to ICT - use the Doing Ethics Technique (DET), ensuring you address each of the DET questions;

  Should you set in ta1ctl, and what corresponding

Which bits (including divisor bits) should you set in TA1CTL, and what corresponding countshould you set in TA1CCR0, to trigger an interrupt every 400 msec?

  Write a report on challenges of an online business

Write a report on Challenges of an Online Business, Technology and Privacy - You may change or refine this topic further down the road. So don't worry about it being a temporary one.

  Discuss the benefits of traditional linux file permissions

Discuss the benefits of the traditional Linux file permissions scheme. How might it be superior to permission methodologies employed in other operating systems and what are the differences in overall approach to permissions, privilege, and securit..

  Calculate the volume of activity that the company

Calculate the optimal production each of for the four products by taking into account the available labor hours and the estimates of the marketing department.

  A senior business analyst with a multinational corporation

a senior business analyst with a multinational corporation

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