Display a prompt indicating that the input was invalid

Assignment Help Management Theories
Reference no: EM13978711

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: EM13978711

Questions Cloud

Calculate the quoted futures price for the contract : It is July 30, 2015. The cheapest-to-deliver bond in a September 2015 Treasury bond futures contract is a 13% coupon bond, and delivery is expected to be made on September 30, 2015. Coupon payments on the bond are made on February 4 and August 4 each..
What is the strength and direction of the magnetic field : What is the strength and direction of the magnetic field halfway between the wires? What is the strength and direction of the magnetic field a distance 1 cm below the bottom wire?
What are forward price and initial value of forward contract : A stock is expected to pay a dividend of $1 per share in two months and in five months. The stock price is $50, and the risk-free rate of interest is 8% per annum with continuous compounding for all maturities. An investor has just taken a short posi..
Determine the distance that wire should be mounted : Determine the distance that wire 1 should be mounted above wire 2 in order for it to be held in place by magnetic repulsion.
Display a prompt indicating that the input was invalid : 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).
What is an upper bound for the one-year futures price of oil : The spot price of oil is $110 per barrel and the cost of storing a barrel of oil for one year is $3.25, payable at the end of the year. The risk-free interest rate is 6% per annum, continuously compounded. What is an upper bound for the one-year futu..
Compounded quarterly or borrowing money from a bank : You have a choice of borrowing money from a finance company at 24 percent compounded quarterly or borrowing money from a bank at 26 percent compounded annually. Which alternative is the most attractive? If you can borrow funds from a bank at 26% comp..
How much water diversion capacity does tom build : Draw graphs of both the PDF (g(•)) and CDF (G(.)) of Strawberry Creek's annual flow. Be precise with your axes. How much water diversion capacity does Tom build?
What are forward price and value of the forward contract : A one-year long forward contract on a non-dividend-paying stock is entered into when the stock price is $38 and the risk-free rate of interest is 8% per annum with continuous compounding. a) What are the forward price and the initial value of the for..

Reviews

Write a Review

Management Theories Questions & Answers

  Establish a pmo or po

Examine the steps an organisation would take to establish a PMO or PO if it did not previously have one. Explain which of these steps would be the most difficult for the organisation to complete successfully.

  What are the highligs of their commitment to the environment

What are the highligs of their commitment to thhte environment??

  Is the equation as a whole statistically significant

Write the equation, do the signs of the coefficients make sense and interpretation of the coefficients

  Question 1in making menus it is important for food and

question 1in making menus it is important for food and beverages management to consider several factors.i what are the

  The responsibility of implementing a facilities design

You have been charged with the responsibility of implementing a facilities design project for bagging ammonium nitrate fertilizers

  Explain the main purpose of a quality management plan

Explain the main purpose of a quality management plan? What are two metrics - besides those provided in this chapter - that Kristin and her team could use on the Just-In-Time training project? Besides ensuring that classrooms are ready for training, ..

  A maserati sports car is considered a specialty good

A Maserati sports car is considered a specialty good because interested buyers will travel far to buy one

  What roles in our firm will be most difficult to fill

Given competition in the market for talent, our geographic location, and the time it takes to develop adequate skills, what roles in our firm will be most difficult to fill?

  Describe how psychology

1. Describe how psychology, social psychology sociology, and anthropology have contributed to the study of organizational behavior. 2. Define intellectual ability and demonstrate its relevance to organizational behavior.

  Construct an annotated bibliography

Construct an annotated bibliography - Should employers screen potential employees on the basis of lifestyle, physical appearance or personality tests?

  Measuring customer satisfaction paper

Measuring Customer Satisfaction Paper

  Challenges of managing a virtual team

The challenges of managing a virtual team stem from the fact that a virtual team might span functional areas, time zones, geographic locations, languages, and cultures. Many people feel that communication is the biggest challenge of managing a vir..

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