What is the data type of the priority queue

Assignment Help Computer Engineering
Reference no: EM134027656

Problem

Use a priority queue to simulate prioritized jobs that might be assigned to a worker or group of workers. The jobs have differing level of priority, highest to lowest. This is true of most tasks at a place of employment. Deadlines and urgency among other factors inform the priority of a task. Your supervisor asking for something to be done may be added with highest priority to your priority queue of job tasks that day. When you prioritize working on homework, you may look at the due dates and make your TODO list a priority queue.

Priority Queue

1. Use built-in class in Java for Priority Queue

2. Your Priority Queue will have a 3-digit job number and a priority MM, NN, OO, PP, or QQ

a. ('Job', Priority')
b. (123, PP)
c. (451, QQ)

Driver

1. Create a Priority Queue object using Java Priority Queue

a. What is the data type of the Priority Queue? Get the instant assignment help.
b. How do have each item in the Priority Queue hold a job number and priority?
c. Recall when you write a class, it can be used as a data type

2. Recall The priorities are MM, NN, OO, PP, QQ

3. For each job, randomly generate the job number, ensure it is 3 digits

4. Add 1 job of second highest priority

a. If you are not given the order highest value to lowest, what should you assume?
b. Add a comment about your chosen priority

5. Add 3 jobs of third highest priority

6. Print the Priority Queue

7. Add 2 jobs of highest priority

8. Print the Priority Queue

9. Remove 2 jobs (this will happen by priority)

10. Print the Priority Queue

11. For each call to a method, include a comment above the method call that includes the ADT definition and description of that method

12. At the end of the driver include a natural sounding comment describing the behavior you see in this driver.

Reference no: EM134027656

Questions Cloud

Reviewing the seven ps of services marketing : After reviewing the seven Ps of services marketing, discuss how they would change your sim strategy for marketing a Global Carbon Fiber manufacturing.
Write a report that outlines and summarizes the context : Write a report that outlines and summarizes the following in the context of the power grid computer network: Mission assurance processes.
Which relies on the merkle-damgard construction internally : This will break UF-CMA security of the scheme and demonstrate a length extension attack. Which relies on the Merkle-Damgard construction internally.
What are the most important aspects of mobile ai : Summarize various elements associated with software applications development using AI. What are the most important aspects of Mobile AI?
What is the data type of the priority queue : What is the data type of the Priority Queue? How do have each item in the Priority Queue hold a job number and priority?
What is the sender action at t=13 upon receipt of the ack : The segment sent at t=4 is lost, as is the ACK segment sent at t=7. What is the sender action at t=13 upon receipt of the ACK?
What information does this form communicate to purchasing : How does a production sheet contribute to operational controls in the kitchen? What information does this form communicate to purchasing?
In what scenarios would you choose cdp over lldp for network : In what scenarios would you choose CDP over LLDP (or vice versa) for network device discovery, and what are the implications for network management?
Importance of recipe cards for food and beverage control : Discuss the importance of the recipe cards for food- and- beverage control. What functions do they serve in the production process?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd