Optional functionality: allow the user to print the report

Assignment Help Basic Computer Science
Reference no: EM13165308

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:Main ScreenThe main screen shall act as a menu to access program functionality and to exit the program.The main screen shall:·       Display 4 optionsA) Add New Employee - Displays new employee screenB) Punch In/Out - Displays punch in/out screenC) Report - Displays report screenD) 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.·       Optional functionality: If the user enters an incorrect value more than 3 times, display a prompt that the program is exiting and close the program.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 Nameo   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.o   Optional Functionality: Allow the user to print the report to a printer. 

Reference no: EM13165308

Questions Cloud

Divide the network whose cidr address : Divide the network whose CIDR address is 165.221.204.0/25 into three subnets, with one subnet having half the addresses and the other two subnets having a quarter of the addresses each. Give the CIDR address of each subnet. How many addresses are ..
Probably not get the job : Was Benko’s remark that the plaintiff would “probably not get the job” when the plaintiff revealed her age sufficient evidence for a jury to find that the defendant stated reasons served as a pretext to hide discriminatory practice?
Make a class employee : Make a class EMPLOYEE with a name and salary. Make a class MANAGER inherit from EMPLOYEE. Add an instance field, named DEPARTMENT
Get to know your member : Follow the instructions in the text closely and use the Web sites provided to search for committee jurisdiction and to find your representative.
Optional functionality: allow the user to print the report : 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
Creation of a base geometric class : The lab will require the creation of a base geometric class, called Shape, and two sub classes, Circle and Rectangle, that are derived public from the class Shape.
Drafting and adoption of a code of ethics : Drafting and adoption of a code of ethics is one approach of making staff and volunteers aware of various ethical issues and hopefully avoid lapses in ethics. What is a code of ethics, and how can such a document help a nonprofit organization?
Convincing yet respectful : You hear a stranger on a bus making racist comments. Should you say something? Why? How would you respond in a way that is convincing yet respectful?
Consider an rgb raster system and color lookup table : Consider an RGB raster system that has a 1024 by 800 frame buffer with 16 bits per pixel and a color lookup table with 24 bits per pixel.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What opportunities enabled team to accomplish its goals

What motivational theories do you think could have been used to encourage the team to be more successful? What specific rewards or opportunities would have enabled the team to accomplish its goals? Why?

  Draw the block diagram for the hardware

Draw the block diagram for the hardware that implements the following: y + xz: AR ß BR + CR where AR, BR and CR are n-bit registers and x, y, and z are control variables.

  Describing dichotomy is not linearly separable

Let the d component of x be either 0 or 1. Assume we assign x to w1 if number of non-zero components of x is odd, and to w2 otherwise. Illustrate that this dichotomy is not linearly separable if d>1.

  Explaining good message digest function

Then calculate message digest on the result. Would this be a good message digest function? Describe. Message digests are reasonably fast.

  Solve decanting problem using euclidean algorithm

Use Euclidean algorithm to solve decanting problem for decanters of sizes 1317 and 1075. Or we can say, determine integers x and y.

  Two cyborgs walk into your home

Two cyborgs walk into your home, both claiming to be oracles for the graph 3-colorability decision problem. They both always give a yes/no answer in constant time for any instance, and are each self-consistent

  Explaining set of all regular languages is countable

Prove or disprove: the set of all regular languages is countable.

  Probability and set theory questions

COMP 2804 Assignment 3,  The Fibonacci numbers are defined as follows,  Assume we roll each of D1, D2, and D3 once, independently of each other. Let R 1 , R2, and R3 be the numbers on the top face of D1, D2, and D3, respectively.

  Explain various kinds of storage devices

Explain what storage devices are, comprising the explanation of storage media. Write examples of at least three various kinds of storage devices.

  Industry specific applications

Does Microsoft's entry into industry-specific applications signal end for smaller industry specific software developers? What changes in strategy through such developers are necessary to compete with Microsoft?

  Thread problem

Implement what is kind of the inverse of our Producer - Consumer, where many Producers supply a limited capacity consumer.

  Explaining use of information technologies to act ethically

When it comes to use of information technologies, it is frequently difficult to find out how to act ethically. Consider some of your own use of information technologies.

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