Write a separate program to simulate (represent) a linked list structure using arrays. You will need the following data structures:
One Array (name it linkedList) that will contain the data in the linked list (e.g. integer values).
Another integer array (name it forwardPointer) that will serve as a corresponding set of forward pointers.
A single external field (integer) named front that will point to the front of the linked list (the first element in the list).
A single external field (integer) named rear that will point to the rear of the linked list (the last element in the list).
For example,
linkedList: 4, 6, 8, 23, 66, 91, 36, 75, 84
So, linkedList [0] = 4, linkedList [4] = 66, etc…
front will contain the value 0 (the index of the first element)
rear will contain the value 8 (the index of the last element
forwardPointer: 1, 2, 3, 4, 5, 6, 7, 8, - (“-“ indicates a pointer beyond the end of linkedList, or null.)
i.e., forwardPointer[2] will initially have the value 3, which points to linkedList[3], or the value 23. You can read this as: “ the element in linkedList indexed by 2 points to the element in linkedList indexed by 3. Note that the value 3 in forwardPointer is then itself used as an index in the array linkeList to point to the next element in the list. ”
Within your program, provide methods that will perform the following functions:
For example, if you wanted to insert the element 12 after 66 in the array linkedList, you would simply add an element of value 12 to the end of the linkedList array, and then manipulate the forwardPointer array accordingly. After the insert operation, the two arrays should result in the following configuration:
linkedList: 4, 6, 8, 23, 66, 91, 36, 75, 84, 12
forwardPointer: 1, 2, 3, 4, 9, 6, 7, 8, - , 5
Note that the array elements themselves are not moved from their original positions in the array. The inserted element (12) is simply added at the end of the array ( position 9), and then the forwardPointer array is updated accordingly: linkedList [4] (66) is now pointing to element linkedList[9] instead of linkedList[5]. Note also that the newly inserted element (12) now points to position 5 in the linkedList array.
It is left as an exercise for the student to determine the steps involved in a removeElement(elementValue) operation.
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme