Question: Java. Please show SCREENSHOT of output so I can see how the output is coming out. Create a program far managing an employee database. The

Java. Please show SCREENSHOT of output so I can see how the output is coming out. Java. Please show SCREENSHOT of output so I can see how the

Create a program far managing an employee database. The required functionality is: 1 An Employee class, with the follawing methods and attributes: a. Data members: firstName (String), lastNane (String), ssn (long), empoyeeld (int), department (String), and job Title String) b Constructor methads: One method requiring parameters for firstNarne, lastName, ssn, and empioyeeld. Department and job Tiie wil be assigned default values of "unknown One method requiring parameters for firstNarne, lastName, ssn, empioyeeld, departmet, and job Tie c. Set methods for changing firstName,lastName, departmend, and jobTiwe which accept a single String as a parameter d. Get methods for returning each of the attributes in 1a. a. Data members for updating the preexisting String. 2) A Controller class to manage the addition, updaing, and viewing of employees An array of Employee objects named e, just declared (nat created) An int variable narned counter (for the number of employees), initialized o zero .A Scanner abject named scanner for text input b. A getinput methad containing a laop for repeatedly receiving text input via scanner. Prior to receiving each input, the program will display the prompt please enter your action. The follawing inputs will be accep:ed and the program will respand with: "add": respond with "please enter employee data. "delete": respond with-delete which employee(s)?. "update employee": respond with "update which employee(s)?" update field values": respand with "update which field values? . read": respand with read which employee(s)? "exit": respond with "thank you for using the EDB application!" . Other than "exit, the response text will be follawed by an empty line and a repeat prampt. The "exit command will exit the pragram by caling System.exito) Contraller will have a main methad that creates a Controller object named c and calls c's getinpuf methad. d. The program shauld be implemented as a single file containing both classes. Each of the required functionalities should be implemenited as separate methods (as far as possible) and operate by passing parameters andior returning values. Conmments should be provided for the dass and for each variable and method, briefly explaining their usage. Extend your application from the previous assignment. The class name should be Contraller2. Likewise, Employee should be renamed Employee2. For this assignment, we will create text-based tools for managing emplayee records. All requirements from the previous assignment remain in effect for the new classes. The new features far this application are: 1) For Employee2, add set methods for ssn and employeeld 2) For the Controller2 class generally a. The constructor shauld create the Employee2 array e initial size zero. set methods and read them b. Data fields in Employee2 abjects shoukd be assigned new values using the . Write a method ePlus that accepts the Emplayee2 array e as a parameter and returns an Employee array. The d. Write a method eMinus hat accepts an int index as a parameter and returns an Employee array. The returned array using the correspanding gef methads returned array should be one element larger than e and cantain all elements of e in the same indexes. To expand e use: e ePlusfe) should be one element smaller than e and without the element at index index. The elements in the returmed array should otherwise maintain the sane order as in e. To delete an element at index index, use: e elMinusfindex) 3) In the Controller2 getinpuf methad, write a method for each valid command: a. add: increases the size of e by one by calling ePlus, then creates a new Employee2 object and adds it to the last valid index of e. To create the Employee2 object, the application will prompt the user to enter values for each of the six Employee2 data fields, in order: emplayeeld, lastName, firstName, department, jobTitie, and ss. The ful set of data ields wil all be entered an one line, separated by single spaces, and parsed by a StringTokenizer object delete: decreases the size of e by one. The user will be prompted to enter an index value, then delete that index by calling eMinus b. . update emplayee: the user will be prompted for an index value, then display via the console the Emplayee2 fields for efindexj. separated by tabs () in order: employeeld, lastNane, firstName, department, job Title, and ssn. Then, the user wil be prompted to enter a new set of six data values in the same order. As in 2a), The full set of data fields will all be entered on ane line, separated by single spaces, and parsed by a StringTokenizer object d. update field values: the user will be prompted to enter either "department or jabe, then an old value String, then a new value String, all on one line, separated by spaces, and parsed by a StringTakenizer object. Within the entered ield, any Strings matching the old value will be updated to the new value. For example, if the user enters TobTitle intern associate", then any Employee2 abjects where jabTitle is intern" will have tha! data field changed to associate e read: On the cansole, the application will display one line for each Emplayee2 in e. The Employee2 abjects will be ardered by index, and each line will contain, separated by tabs t), in order: the index, empioyeeld, lastName, firstName, department, job Tie, and ssn . exit displays a message via the console, Thank you far using our Employee Management Application, then calls the methad System.exitf) As before, the program should be implemented as a single fie containing the two Java classes Controller2 and Employee2. All data members should be declared as private; all methods should be declared without any visiblity modifiers. It is not necessary to provide errar-checking for his application; you may safely assurne that the user will only enter valid inputs. However, please carefully follow the formats given; points will be deducted for non-standard input formats. Create a program far managing an employee database. The required functionality is: 1 An Employee class, with the follawing methods and attributes: a. Data members: firstName (String), lastNane (String), ssn (long), empoyeeld (int), department (String), and job Title String) b Constructor methads: One method requiring parameters for firstNarne, lastName, ssn, and empioyeeld. Department and job Tiie wil be assigned default values of "unknown One method requiring parameters for firstNarne, lastName, ssn, empioyeeld, departmet, and job Tie c. Set methods for changing firstName,lastName, departmend, and jobTiwe which accept a single String as a parameter d. Get methods for returning each of the attributes in 1a. a. Data members for updating the preexisting String. 2) A Controller class to manage the addition, updaing, and viewing of employees An array of Employee objects named e, just declared (nat created) An int variable narned counter (for the number of employees), initialized o zero .A Scanner abject named scanner for text input b. A getinput methad containing a laop for repeatedly receiving text input via scanner. Prior to receiving each input, the program will display the prompt please enter your action. The follawing inputs will be accep:ed and the program will respand with: "add": respond with "please enter employee data. "delete": respond with-delete which employee(s)?. "update employee": respond with "update which employee(s)?" update field values": respand with "update which field values? . read": respand with read which employee(s)? "exit": respond with "thank you for using the EDB application!" . Other than "exit, the response text will be follawed by an empty line and a repeat prampt. The "exit command will exit the pragram by caling System.exito) Contraller will have a main methad that creates a Controller object named c and calls c's getinpuf methad. d. The program shauld be implemented as a single file containing both classes. Each of the required functionalities should be implemenited as separate methods (as far as possible) and operate by passing parameters andior returning values. Conmments should be provided for the dass and for each variable and method, briefly explaining their usage. Extend your application from the previous assignment. The class name should be Contraller2. Likewise, Employee should be renamed Employee2. For this assignment, we will create text-based tools for managing emplayee records. All requirements from the previous assignment remain in effect for the new classes. The new features far this application are: 1) For Employee2, add set methods for ssn and employeeld 2) For the Controller2 class generally a. The constructor shauld create the Employee2 array e initial size zero. set methods and read them b. Data fields in Employee2 abjects shoukd be assigned new values using the . Write a method ePlus that accepts the Emplayee2 array e as a parameter and returns an Employee array. The d. Write a method eMinus hat accepts an int index as a parameter and returns an Employee array. The returned array using the correspanding gef methads returned array should be one element larger than e and cantain all elements of e in the same indexes. To expand e use: e ePlusfe) should be one element smaller than e and without the element at index index. The elements in the returmed array should otherwise maintain the sane order as in e. To delete an element at index index, use: e elMinusfindex) 3) In the Controller2 getinpuf methad, write a method for each valid command: a. add: increases the size of e by one by calling ePlus, then creates a new Employee2 object and adds it to the last valid index of e. To create the Employee2 object, the application will prompt the user to enter values for each of the six Employee2 data fields, in order: emplayeeld, lastName, firstName, department, jobTitie, and ss. The ful set of data ields wil all be entered an one line, separated by single spaces, and parsed by a StringTokenizer object delete: decreases the size of e by one. The user will be prompted to enter an index value, then delete that index by calling eMinus b. . update emplayee: the user will be prompted for an index value, then display via the console the Emplayee2 fields for efindexj. separated by tabs () in order: employeeld, lastNane, firstName, department, job Title, and ssn. Then, the user wil be prompted to enter a new set of six data values in the same order. As in 2a), The full set of data fields will all be entered on ane line, separated by single spaces, and parsed by a StringTokenizer object d. update field values: the user will be prompted to enter either "department or jabe, then an old value String, then a new value String, all on one line, separated by spaces, and parsed by a StringTakenizer object. Within the entered ield, any Strings matching the old value will be updated to the new value. For example, if the user enters TobTitle intern associate", then any Employee2 abjects where jabTitle is intern" will have tha! data field changed to associate e read: On the cansole, the application will display one line for each Emplayee2 in e. The Employee2 abjects will be ardered by index, and each line will contain, separated by tabs t), in order: the index, empioyeeld, lastName, firstName, department, job Tie, and ssn . exit displays a message via the console, Thank you far using our Employee Management Application, then calls the methad System.exitf) As before, the program should be implemented as a single fie containing the two Java classes Controller2 and Employee2. All data members should be declared as private; all methods should be declared without any visiblity modifiers. It is not necessary to provide errar-checking for his application; you may safely assurne that the user will only enter valid inputs. However, please carefully follow the formats given; points will be deducted for non-standard input formats

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!