Question: Write a Java program to implement a Priority Queve i. Provide the menu as shown below, Run the program in a loop: stop when user
Write a Java program to implement a Priority Queve i. Provide the menu as shown below, Run the program in a loop: stop when user opts 4. ii. Use your own singly linked list [Lab 08 , Exercise 5] of nodes with info requestlD and priority. iii. Add a customer should input priority ( 0 to 10) from user and enqueue it in the priority queue. iv. Remove a customer should dequeue a customer with highest priority. v. Show the queue should display the queue using the method printQueuev(). WWaming, Cheating in homework will resuit in zero marksi.. (same programs will get 0). I For the toolbar, press ALT+F10(PC) or ALT+FN+F10 iMaci. QUESTION 3 What type of recursion is used in the following function? int f(int ny it (in=i) return 1; else return n+f(n1) ) Indirect recursion
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
