Write an application that can help the company to work on tasks relating to the information...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write an application that can help the company to work on tasks relating to the information of Employees. There are two types of employee: Employee and Employee with Title The system will keep some information of an employee, such as, name (String), employID (String), address (String), salary rate (double) and title (String, only for employee with the title) The application should use the Unsorted Optimized Array Data structure type to keep all kinds of employees and provide the following menu to allow users can play any tasks and only terminate the program when users select exit COMPANY XYZ-EMPLOYEES 1. Insert 2. Fetch 3. Verify Uncapsulation 4. Delete 5. Update 6. Show All Employees TASK INSERT: -Display all the instruction to allow users to type all information that need to create an employee or employee with title -Insert the employee or employee with title to the structure -Display information of the node in the following format Employee name: Employee Id: James Smith 5555555 Employee address: 123 Plano Rd Dallas TX 75243 Employee salary: 15.25 HO OR Employee name: Employee Id: Employee address: Employee salary: Employee title: James Smith 5555555 123 Plano Rd Dallas TX 75243 15.25 Director 96 -If user insert an employe/employee with title when the data structure full, display the message box: "The data structure is full, insert is not successful - the employee is not in the system" TASK FETCH: -Display a message to ask users to type the employee id to search -Display the employee with provided employee id Or display the following message if the employee id cannot be found "Employee with id 12345 cannot be found" Message Employee with id 12345 cannot be found TASK VERIFY ENCAPSULATION The Unsorted Optimized Array Data Structure is encapsulated -Fetch a node with the key field of an existing employee/employee with title and store it in an Employee/Employee with title object named as temp1 -modify the address of temp1 -fetch a node with the key field same as the key field of temp1 and store it in an Employee object named temp2 -If the address of temp2 is different the address of temp1 then display: Message Unsorted Optimized Array Structure is encapsulated OK Otherwise, display: Message X i Unsorted Optimized Array Structure is unencapsulated TASK DELETE -Ask users to proivde the employee id (for example: 12345) -Display the message: "Emplyee with id 12345 is removed" Message Employee with id 12345 is removed OK OR display the message "Employee with id 12345 cannot be found" Message Employee with id 12345 cannot be found OK TASK UPDATE -Ask users to provide the employee id of an existing employee or employee with title -fetch with the employee id COSC2436-LAB3 2 -modify address or salary rate -update it to the structure -fetch again with the same employee id to see the change TASK SHOW ALL -print out the information of all employee and employee with title in the data structure B. INSTRUCTION HOW TO DO THE LAB ANALYZE: -You should read the requirement again to see what the requirement gives you and what it asks you to do then write them on the paper. -Think about what java statements you already know and what new statements you need to learn to do this lab. To get help for new statements you can find the example in the page Learn From Questions on eCampus -The employee and employee with title should have Inheritance relationship -Also, you need to apply polymorphism in the main to deal with employee object and employee with title object PSEUDO-CODD AND UML -Provide UML of data type classes -provide pseudo-code of main(): Psuedo-code is written in English that lists what you have to do step by step in the main such that your program is qualified to the requirement. Write the pseudo-code in notepad and save with the file name as PART1_Pseudocode_yourLastName -Based on what should be done in the Analyze, you should list step by step how you will do on the paper, organize these steps in good order such that if you follow these steps to write the code, your program can have the result as requested Spend time to analyze and create the pseudo-code before writing the code is the best way to improve yourself in programming. If you do not know how to write the pseudo-code, contact me to get help. WRITE THE CODE 1. Create the project name FA2017LAB3_PART1 2. Add four classes: two data type classes, one data structure class and one driver class FA2017LAB3_EmployeeSystem_yourLastName Based on the UML, write the code for data type classes Based on the pseudo-code write the code for main() COMPILE THE PROJECT - RUN THE PROJECT -ensure you have the comments -ensure you have all the requirements that list on how to grade the lab before turning in PART 2 REQURIEMENT: Create the application to work with Java ArrayList data structure Insert 50 numbers from 1 to 50 to the ArrayList Promp to allow users to insert 3 employees. They could be object of Employee or Employee with title to the ArrayList Insert numbers from 54 to 100 to the ArrayList 1. 2. 3. 4. Display the size of ArrayList 5. Delete an object at index 50 then display the size 6. Fetch and print out the information of the node at index 21 (temp) and the node at index 50 (temp1) 7. To verify ArrayList is unencapsulated: modify the address the node temp1 that is fetched above, then fetch the node at index 50 again (temp2). Compare the address of temp1 and temp2. If the addresses are the same display message: "Java ArrayList is encapsulated" Message ⑪Java ArrayList is encapsulated COSC2436-LADS OK Otherwise display the message: "Java ArrayList is unencapsulated" Message ⑪Java ArrayList is unencapsulated OK INSTRUCTION HOW TO DO PART 2 ANALYSIS What you can know about ArrayList from the lecture What data type of the node in this project How you define the data structure? Etc. 3 INSTRUCTION HOW TO DO PART 2 ANALYSIS What you can know about ArrayList from the lecture What data type of the node in this project How you define the data structure? Etc. PSUEDO-CODE: Read the requirement again to see how many task you need to provide for the application (main) of driver class FA2017LAB3_JavaArrayList Demo_yourLastName For each function do the following: WRITE THE CODE -Create the project name: FA2017LAB3_PART2 -Add all data type classes and driver class -Based on each UML you should write the code for data type classes -Based on the pseudo-code, write the code for main COMPILE AND RUN THE PROJECT -Ensure you have the comments on each class -Ensure you lab has all the requirements that are listed on How to grade the lab list HOW TO TURN IN Attach the following source files: -FA2017LAB3_PART1_pseudo-code -FA2017LAB2_PART2_pseudo-code -UML of parent class and the child class -FA2017LAB3_Employee System_YourLastName.java -FA2017LAB3_Unsorted OptimizedArray_YourLastName.java -FA2017LAB3_Employee_YourLastName.java -FA2017LAB3_EmployeeWithTitle_YourLastName.java -FA2017LAB3_EmployeeSystem_YourLastName.class -FA2017LAB3_Unsorted OptimizedArray_YourLastName.class -FA2017LAB3_Employee_YourLastName.class -FA2017LAB3_EmployeeWithTitle_YourLastName.class -FA2017LAB3_JavaArrayListDemo_YourLastName.java -FA2017LAB2_JavaArrayList Demo_YourLastName.class Write an application that can help the company to work on tasks relating to the information of Employees. There are two types of employee: Employee and Employee with Title The system will keep some information of an employee, such as, name (String), employID (String), address (String), salary rate (double) and title (String, only for employee with the title) The application should use the Unsorted Optimized Array Data structure type to keep all kinds of employees and provide the following menu to allow users can play any tasks and only terminate the program when users select exit COMPANY XYZ-EMPLOYEES 1. Insert 2. Fetch 3. Verify Uncapsulation 4. Delete 5. Update 6. Show All Employees TASK INSERT: -Display all the instruction to allow users to type all information that need to create an employee or employee with title -Insert the employee or employee with title to the structure -Display information of the node in the following format Employee name: Employee Id: James Smith 5555555 Employee address: 123 Plano Rd Dallas TX 75243 Employee salary: 15.25 HO OR Employee name: Employee Id: Employee address: Employee salary: Employee title: James Smith 5555555 123 Plano Rd Dallas TX 75243 15.25 Director 96 -If user insert an employe/employee with title when the data structure full, display the message box: "The data structure is full, insert is not successful - the employee is not in the system" TASK FETCH: -Display a message to ask users to type the employee id to search -Display the employee with provided employee id Or display the following message if the employee id cannot be found "Employee with id 12345 cannot be found" Message Employee with id 12345 cannot be found TASK VERIFY ENCAPSULATION The Unsorted Optimized Array Data Structure is encapsulated -Fetch a node with the key field of an existing employee/employee with title and store it in an Employee/Employee with title object named as temp1 -modify the address of temp1 -fetch a node with the key field same as the key field of temp1 and store it in an Employee object named temp2 -If the address of temp2 is different the address of temp1 then display: Message Unsorted Optimized Array Structure is encapsulated OK Otherwise, display: Message X i Unsorted Optimized Array Structure is unencapsulated TASK DELETE -Ask users to proivde the employee id (for example: 12345) -Display the message: "Emplyee with id 12345 is removed" Message Employee with id 12345 is removed OK OR display the message "Employee with id 12345 cannot be found" Message Employee with id 12345 cannot be found OK TASK UPDATE -Ask users to provide the employee id of an existing employee or employee with title -fetch with the employee id COSC2436-LAB3 2 -modify address or salary rate -update it to the structure -fetch again with the same employee id to see the change TASK SHOW ALL -print out the information of all employee and employee with title in the data structure B. INSTRUCTION HOW TO DO THE LAB ANALYZE: -You should read the requirement again to see what the requirement gives you and what it asks you to do then write them on the paper. -Think about what java statements you already know and what new statements you need to learn to do this lab. To get help for new statements you can find the example in the page Learn From Questions on eCampus -The employee and employee with title should have Inheritance relationship -Also, you need to apply polymorphism in the main to deal with employee object and employee with title object PSEUDO-CODD AND UML -Provide UML of data type classes -provide pseudo-code of main(): Psuedo-code is written in English that lists what you have to do step by step in the main such that your program is qualified to the requirement. Write the pseudo-code in notepad and save with the file name as PART1_Pseudocode_yourLastName -Based on what should be done in the Analyze, you should list step by step how you will do on the paper, organize these steps in good order such that if you follow these steps to write the code, your program can have the result as requested Spend time to analyze and create the pseudo-code before writing the code is the best way to improve yourself in programming. If you do not know how to write the pseudo-code, contact me to get help. WRITE THE CODE 1. Create the project name FA2017LAB3_PART1 2. Add four classes: two data type classes, one data structure class and one driver class FA2017LAB3_EmployeeSystem_yourLastName Based on the UML, write the code for data type classes Based on the pseudo-code write the code for main() COMPILE THE PROJECT - RUN THE PROJECT -ensure you have the comments -ensure you have all the requirements that list on how to grade the lab before turning in PART 2 REQURIEMENT: Create the application to work with Java ArrayList data structure Insert 50 numbers from 1 to 50 to the ArrayList Promp to allow users to insert 3 employees. They could be object of Employee or Employee with title to the ArrayList Insert numbers from 54 to 100 to the ArrayList 1. 2. 3. 4. Display the size of ArrayList 5. Delete an object at index 50 then display the size 6. Fetch and print out the information of the node at index 21 (temp) and the node at index 50 (temp1) 7. To verify ArrayList is unencapsulated: modify the address the node temp1 that is fetched above, then fetch the node at index 50 again (temp2). Compare the address of temp1 and temp2. If the addresses are the same display message: "Java ArrayList is encapsulated" Message ⑪Java ArrayList is encapsulated COSC2436-LADS OK Otherwise display the message: "Java ArrayList is unencapsulated" Message ⑪Java ArrayList is unencapsulated OK INSTRUCTION HOW TO DO PART 2 ANALYSIS What you can know about ArrayList from the lecture What data type of the node in this project How you define the data structure? Etc. 3 INSTRUCTION HOW TO DO PART 2 ANALYSIS What you can know about ArrayList from the lecture What data type of the node in this project How you define the data structure? Etc. PSUEDO-CODE: Read the requirement again to see how many task you need to provide for the application (main) of driver class FA2017LAB3_JavaArrayList Demo_yourLastName For each function do the following: WRITE THE CODE -Create the project name: FA2017LAB3_PART2 -Add all data type classes and driver class -Based on each UML you should write the code for data type classes -Based on the pseudo-code, write the code for main COMPILE AND RUN THE PROJECT -Ensure you have the comments on each class -Ensure you lab has all the requirements that are listed on How to grade the lab list HOW TO TURN IN Attach the following source files: -FA2017LAB3_PART1_pseudo-code -FA2017LAB2_PART2_pseudo-code -UML of parent class and the child class -FA2017LAB3_Employee System_YourLastName.java -FA2017LAB3_Unsorted OptimizedArray_YourLastName.java -FA2017LAB3_Employee_YourLastName.java -FA2017LAB3_EmployeeWithTitle_YourLastName.java -FA2017LAB3_EmployeeSystem_YourLastName.class -FA2017LAB3_Unsorted OptimizedArray_YourLastName.class -FA2017LAB3_Employee_YourLastName.class -FA2017LAB3_EmployeeWithTitle_YourLastName.class -FA2017LAB3_JavaArrayListDemo_YourLastName.java -FA2017LAB2_JavaArrayList Demo_YourLastName.class
Expert Answer:
Answer rating: 100% (QA)
Employee Management System with Unsorted Optimized Array This explanation outlines the steps to create an Employee Management System using an Unsorted Optimized Array in Java following the provided in... View the full answer
Related Book For
Systems analysis and design in a changing world
ISBN: 978-1423902287
5th edition
Authors: John W. Satzinger, Robert B. Jackson, Stephen D. Burd
Posted Date:
Students also viewed these programming questions
-
answer the question clearly You are building a flight-control system for which a convincing safety case must be made. Would you assign the tasks of safety requirements engineering, test case...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Increasingly sophisticated communications technology is allowing more people to work at home. What effect do you think this might have on land-use patterns, specifically the density of residential...
-
What other strategies might the United States and EU use to stimulate their domestic solar panel industries and eliminate the incentive to outsource production to other countries?
-
In a large city it was found that summer electricity bills for single-family homes followed a normal distribution with a standard deviation of $100. A random sample of 25 bills was taken. a. Find the...
-
A pitcher throws a fastball toward home plate. (a) When the ball is halfway to the plate, is the pitcher's push still exerted on the ball? (b) What forces, if any, are exerted on the ball at the...
-
King Company manufactures a single product. Annual production costs incurred in the manufacturing process are shown below for two levels of production. Instructions (a) Define the terms variable...
-
DJ's Windsurfing projects cash flows of $13,500, $20,400, and $32,900 for Years 1 to 3 for a project with an initial cost of $45,000. What is the profitability index given an assigned discount rate...
-
Grove Audio is considering the introduction of a new model of wireless speakers with the following price and cost characteristics. Required a. What number must Grove Audio sell annually to break...
-
At the beginning of the week, Cash in Bank has an account balance of $3,500.00. During the week, the following transactions occur: Office supplies in the amount of $236.12 are purchased; the owner...
-
James Pet Supplies Incorporated Balance Sheets Years ended 2014 and 2015 Assets Liab. Equity 2014 2015 2014 2015 Cash $1,500 $2,300 Accounts Pay $3,000 $4,000 Accounts Rec. 1,600 2,800 Inventory...
-
Engage in a discussion where you takes on a role within the project team (e.g., project manager, client representative, team member). Discuss the scenario, debate the pros and cons of introducing...
-
Describe an example where the Theory of Constraints (TOC) was successfully applied to improve a process or where you saw the potential for TOC to improve the process in either a company you worked...
-
This is a very top-down approach where the supervisor makes all the decisions and dictates tasks and procedures to the team. 2. Democratic Style: In this style, the supervisor involves the team in...
-
fresh from graduatiing from the university of oklahoma in the spring of 2023, Joana is now considering investing 4,000 a year in Roth 401(l) retirement account she recently opened with Morgan...
-
23 +z+1 Evaluate dz , where C is the ellipse 4x2 + 9y = 1. Yc z2 3z+2
-
A business had revenues of $280,000 and operating expenses of $315,000. Did the business (a) Incur a net loss (b) Realize net income?
-
In Chapter 7, you developed a use case diagram, a domain model class diagram, and detailed documentation for three use cases. In your detailed documentation, you generated a fully developed...
-
For the previous problem, use the DCD and identify a set of CRC cards that would support the Add new vehicle to existing policy use case. You might want to get a set of index cards and actually do a...
-
1. Is this dialog a logical or a physical model? Could it be a phone registration system? Could a clerk at a desk handle the dialog manually? Discuss. 2. Discuss how well this dialog follows the...
-
A typical wind turbine extracts 40% of the kinetic energy of the wind that blows through the area swept by the blades. For a large turbine, 110,000 kg of air moves past the blades at 15 m/s every...
-
If you want to jump as high as possible, its best to move downward quickly to a deep crouch, stretching tendons and muscles, before pushing off and leaving the ground rather than simply pushing off...
-
Jessie and Jaime complete a 5.0 km race. Each has a mass of 68 kg. Jessie runs the race at 15 km/h; Jaime walks it at 5 km/h. How much metabolic energy does each use to complete the course?
Study smarter with the SolutionInn App