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