Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

List and describe three behavioral leadership theories.

Answered: 1 week ago