Question: Using java Suppose there are two types of the applications New entry candidate: name, id, phone, degree Experience candidate: name, id, phone, degree, number of
Using java
Suppose there are two types of the applications
New entry candidate: name, id, phone, degree
Experience candidate: name, id, phone, degree, number of experience years, last salary
The application should allow users to select to work with Stack or Queue and only terminate when users select exit
For each structure either Stack or Queue, the users can do the following tasks:
1. Add a candidate
2. Remove a candidate
3. Display the candidate at top (or at front of Queue)
4. Show all candidates in the structure After finishing a task, the application should allow users to continue to do other tasks until they want to exit
TASK ADD A CANDIDATE
-Allow users to type in the information of the candidate, either new entry candidate or experience candidate
-add to the stack/queue
-print the the information of inserted candidate in the following format

TASK REMOVE A CANDIDATE
-remove a candidate then print out the removed candidate or display message box: The Stack is empty or The queue is empty
TASK DISPLAY THE CANDIDATE AT TOP (or AT FRONT FOR THE QUEUE)
-display the candidate at top (or front) or display the message box: The Stack is empty or The queue is empty
TASK SHOW ALL CANDIDATES
-display all the candidates on the stack (or queue)
create UML, write the code for data type classes
create pseudo-code write the code for main()
Add Five classes: two data type classes, two data structure classes for Stack and Queue and one driver class: CandidateRestrictedStructure
For new entry candidate Don Rimmington 12345 2147256543 BA Computer Science Name ID: Degree OR for Experience candidate James Smith 12346 9723124733 BA Computer Science Name ID Degree Experience year Last salary 58000 For new entry candidate Don Rimmington 12345 2147256543 BA Computer Science Name ID: Degree OR for Experience candidate James Smith 12346 9723124733 BA Computer Science Name ID Degree Experience year Last salary 58000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
