subject

Hello please, I would like assistance with an assignment in data structures and algorithms with part of the code attached to it in a zip file. with the use of c++. Thank you 1. Modify the relevant source files and test files in a project for unsorted list to include Reverse function that is a member of class UnsortedType.
The initial implementation of the unsorted linked list is in the attached files.
Function Reverse should reverse the sequence of the elements in the list which is an instance of class UnsortedType to which function Reverse belongs.
Reverse function requirements:
public void UnsortedType::Reverse()
Function: reverses the linked list by changing the direction of the pointers
Preconditions: list has been initialized and is not empty
Postconditions: the list pointed to by listData attribute of UnsortedType class is a reverse of the list before the Reverse function invocation.
2. Update the test driver already given (listDriver. cpp) with a case for Reverse (introduce a new test file command Reverse and an "if then" block in listDriver. cpp that will invoke the Reverse function).
Create a new input file for the test driver listDriver. cpp that contains commands:
PutItem 5
PutItem 7
PutItem 6
PutItem 9
PrintList
PutItem 1
PrintList
GetItem 4
GetItem 5
GetItem 9
GetItem 10
IsFull
PrintList
Reverse
PrintList
Quit
There is already a function PrintList and a test file command PrintList. You can see how they are used in other testcases inside listDriver. cpp
Provide an output text file generated by the test driver (listDriver. cpp).
The assignment should contain the project directory for Eclipse.
The Eclipse project directory will contain
Source code files
Executable that runs the testcases
File with testcases output

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:00
Describe in pseudocode an algorithm that given an integer n and a linked list of elements increases the linked list by a factor of n by replacing each element in the original list with n copies of that element. for example, if l: [18, 7, 4, 24, 11] and n = 3 the resulting list should be l: [18, 18, 18, 7, 7, 7, 4, 4, 4, 24, 24, 24, 11, 11, 11]. if the value of n is less than or equal to 0, the list should be empty after the call. what’s the running time of your algorithm?
Answers: 3
question
Computers and Technology, 22.06.2019 03:30
Identify at least three types of characteristics that you were asked about as you the computer identify a fruit.
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
Which component acts as a platform on which application software runs
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
How do you write an argumentative essay about the importance of free enterprise ?
Answers: 1
You know the right answer?
Hello please, I would like assistance with an assignment in data structures and algorithms with part...
Questions