Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

TASK 3 : CODING BY USING HEAP PRIORITY QUEUE PLEASE ~! THANKS Requirement A priority queue is an abstract data type that each element has

TASK 3 : CODING BY USING HEAP PRIORITY QUEUE PLEASE ~! THANKS

image text in transcribed

image text in transcribed

image text in transcribedimage text in transcribedimage text in transcribed

Requirement A priority queue is an abstract data type that each element has a priority" associated with it. An element with high priority is served before an element with low priority. If two elements have the same priority, they are served according to their order in the queue. You are require to design and develop an interactive program that will simulate a job distribution system using priority concepts and operations. Job with the highest priority will be assigned to the employee first. Your program must consist of the following operations: - Set the maximum heap for priority queue Check for empty priority queue - Check for full priority queue Insert job name and its priority value to priority queue / Remove job name with highest priority value Print the size of priority queue Display the priority queue's content Clear the priority queue Duplicate job is not allowed Task 1: Solution Algorithm Design a solution algorithm using pseudocode based on requirement above. Task 2: Flowchart Create a flowchart to depict the actual workflow of the program. Task 3: Program Implementation Convert your solution algorithm to a complete Java application

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 Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions