Question: Link to driver: https://cse.sc.edu/~shephejj/csce146/Labs/ProcessQueueSimulatorFiles/ProcessSchedulerSimulator.java Objective: Write a program which simulates first come first serve scheduling using a queue. Download the driver and include it in

Link to driver:
https://cse.sc.edu/~shephejj/csce146/Labs/ProcessQueueSimulatorFiles/ProcessSchedulerSimulator.java
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 process 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 internal 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 oTail: AListNode that points to the last element of the queue Other Methods oEnqueue: This method returns nothing and t akes 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
