Need to develop GUI screens for the program. Logic is already done just need to change from menu to events

Get perfect grades by consistently using our affordable writing services. Place your order and get a quality paper today. Take advantage of our current 20% discount by using the coupon code GET20


Order a Similar Paper Order a Different Paper

Need to develop GUI screens for the program. Logic is already done just need to change from menu to events

Need to develop GUI screens for the program. Logic is already done just need to change from menu to events
Program 6: Passwords and a GUI Interface CS 6617 Spring 2015 Goals and Overview. To complete implementation of the program started in P4. To add passwords to the project. To provide a GUI interface for the project. Overview: Program 5 implemented polymorphism, object files, and the rest of the controller’s menu. Program 6 will complete the project by adding a password and a GUI. Passwords: Debug this first. The following changes need to be made in your code for P5: Add a password field to the Employee. Change the toString method and other methods to include the password. Add an accessor for the password. In the Payroll class, define a function named getNewPassword(). Do the following: Prompt the Boss to enter the password (after entering the user name). Encrypt it using SHA-256 and store as a byte array. (Refer to the demo program called Password.) Prompt the Boss to re-enter the password. Encrypt and store as a byte array, then compare your two byte arrays. If they match, return the encrypted password as a byte array. If not, re-prompt and retry. Do not return from this function until you have a valid encrypted password. Call your getNewPassword function before creating a new Employee. Remember that the Boss must enter “H” for hourly or “S” for salaried before you can create an Employee. The GUI This GUI interface will need several screens. Each one should be implemented as a separate Scene: A login screen. When an employee successfully logs in, go to either screen 2 or screen 6, depending on who logged in. A Boss screen with a scrollable text area to display the list of employees and buttons to create a new employee, make changes, or do the payroll. After doing the payroll, go to screen 5. A screen for creating new Employees. Create the employee and return to screen 2 when the Boss clicks one of the radio buttons to select the employee type. A screen for the Boss to change an Employee’s name or salary or fire him. Return to screen 2 when the Boss clicks “OK”. A screen to display the payroll data. This should have a scrollable text area for the payroll output and a single “OK” button that takes control back to screen 2. A screen for the non-Boss to view his own data and possibly quit. Create and debug these screens in the order listed. Don’t forget to have a screen for the boss to enter his information initially if the file is not found!! Program 6: Passwords and a GUI Interface CS 6617 Spring 2015 2 Convert the Program from Menu-driven to Event-driven Most of the logic of P5 can be reused without change. However, the Payroll constructor and the main menu loop must be replaced by responses to the GUI controls. Start with a copy of a working P5. Throw out the main function. Change the Payroll class: add the parts of your GUI and a buildGui() method, which will be very long because you need to build six Scenes. Write and register handlers for the buttons. Your start() method needs to realize the database (read in the db file). Your switch statement in the menu loop calls several methods for processing requests. These methods will now be called by your event handlers when the corresponding button is pressed. When the user selects logout, run the code that was in the finally clause that surrounded the menu loop. The database should be serialized (written out) at this time. Submission Submit all the Java code, the input and output files from the final run, and at least one screen shot of each scene that corresponds to the final output file. Please provide a sample employee file and the boss password for it in case I can’t get your program to run by creating a new one.

Have your paper completed by a writing expert today and enjoy posting excellent grades. Place your order in a very easy process. It will take you less than 5 minutes. Click one of the buttons below.


Order a Similar Paper Order a Different Paper