Write a program to track hourly employee arrival

Assignment Help JAVA Programming
Reference no: EM13168620

JAVA SOURCE CODE

A company hires you to write a program to track hourly employee arrival and departure times from work. In essence, you are tasked to make an online time clock. The time clock shall keep a history of an employee's hours for a two-week pay period. The application shall have the following functionality:

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).

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).

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

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.

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.

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

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.

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

Reference no: EM13168620

Questions Cloud

Compute the wavelength of light that is absorbed : Caculate the wavelength of light( in nanometers) that is absorbed when the electron in a He+ ion goes from the n=2
Consider a cpu that implements four parallel : Consider a CPU that implements four parallel fetch-execute pipelines for superscalar processing. Show the performance improvement over scalar pipeline processing and no-pipeline processing, assuming an instruction cycle similar to figure 4.1 in th..
Explain one mole of an ideal gas is heated : One mole of an ideal gas is heated from 100 C to 322.4 C at constant VOLUME. Report the heat added (in kJ and three significant digits) to this gas to achieve this heating
How should mitigation proceed : If strong oxidizer spill occurs in the vicinity of barrels of flammable chemicals, with one of the barrels of flammable chemicals possible leaking as well, should water be used on the incident or how should mitigation proceed?
Write a program to track hourly employee arrival : A company hires you to write a program to track hourly employee arrival and departure times from work. In essence, you are tasked to make an online time clock.
Briefly describe how parameter passing by value : Briefly describe how parameter passing by value and by reference are accomplished in memory. Write statement 1 to call Method A below. Write statement 2 to call Method B. Which method uses pass by value? Which method uses pass by reference?
How many moles of the gas are in the container : the gaseous product of a reaction is collected in a 25L container at 27degrees celsiu. the pressure in the container is 300.0 kPa. how many moles of the gas are in the container.
What is the chief product of dehydration : Neopentyl alcohol, (CH3)3CCH20H,cannot be dehydrated to an alkene without rearrangement. What is the chief product of dehydration? What product would you expect from addition of deuterium chloride to 2-cyclohexyl-4methyl-2-pentene?
What is the size of data in the ipv4 datagram : An IPv4 header bytes in Hex notation is given below: 45 c0 00 38 9b 3e 00 00 ff 01 fd 3b 80 99 90 01 80 99 91 56.Answer the following questions about the header:What is the size of data in the IPv4 datagram?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Creates a file called "grades.txt" with 1000 lines

Write a program that creates a file called "grades.txt" with 1000 lines. Each line in the "grades.txt" file will consist of a student's first name, last name, graduating year(2013,2014,2015), and grade. the student's first name and last name for t..

  Using netbeans, use repetition to display a table of values

Using Netbeans, use repetition to display a table of values showing x, the square of x and the cube of x. X is to go up to 5.

  Write a program that reads a file name from the keyboard

Write a program that reads a file name from the keyboard. The file contains integers, each on a separate line. The first line of the input file will contain the number of integers in the file. You then create a corresponding array and fill the array ..

  Die class that can hold an integer

Design a die class that can hold an integer from 1 to 6. use the dice class to create a dice game. in this game, the user chooses a number between 2 and 12 inclusive

  Add a draw() method to horse class.

Add a draw() method to your Horse class. You will also need to create a couple of Horses in your DrawPanel class, and call the draw() method for each Horse from the paintComponent() method. There is no need to modify the DrawPanelDriver class.

  One search function

One search function will use a sentinel to mark the end of the array. The other search function will use an array length (maximum legal index into the array) to determine when to exit the search loop. Both functions must return true when the searc..

  World data app

Prepare WorldDataApp project. It implements the NameIndex portion, including creating it in SetupProgram, and searching, viewing and updating it in UserApp program.

  Consider a typical certification hierarchy

Why might Bob still not trust that the certificate for Alice truly establishes Alice as the owner of the public key in the certificate?

  Develop a program that will handle a golfer and his scores

develop a program that will handle a Golfer and his scores. The program will be comprised of two classes: a Golfer class that will manage all the golfer's scores and a Score class.This is a class designed to represent a golfer including his name, hom..

  Write a java program to compute salary

Write a Java program which computes the Salary for a given number of employees. The program prompts user to enter n the number of employees.

  Presell a limited number of cinema tickets

Write an application to presell a limited number of cinema tickets. each buyer can buy as many as 4 tickets. No more than 100 tickets can be sold. Implement a program called TicketSeller that prompts the user for the desired number of tickets and the..

  Write a method named is all vowels that returns

Write a method named isAllVowels that returns whether a String consists entirely of vowels

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