Question: I need this in Dr Java Asap! I need help Process Queue Simulator Objective: Write a program which simulates first come first serve scheduling using
Process Queue Simulator Objective: Write a program which simulates first come first serve scheduling using a queue. Download the driver and include it in your project. Create a class Process with the following: Attributes o Name: the name given to the process o Completion time: a positive decimal value that indicates how long the p rocess has until it is finished Constructors o Default o Parameterized Accessors and Mutators for all attributes. MAKE SURE TO CHECK FOR VALID VALUES Other methods: o toString: Takes in nothing via a parameter and returns a string showing the process's name and completion time. Create a class LinkedListQueue with the following: * Assume this is will have a generic type . An intermal class ListNode with the following o Attributes: - Data: the data that's held in the node of a generic type Link: a ListNode that points to the next element o Constructors . Default - Parameterized Attributes o Head: A ListNode that points to the first element of the queue o Tail: A ListNode that points to the last element of the queue Other Methods o Enqueue: This method returns nothing and takes in some generic data that is added to the end of the queue o Dequeue: This method removes and returns the first element's data of the queue as long as the head is not null. o Peek: Returns the first element's data, but doesn't remove the element. o Print: Prints out the entire queue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
