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, 23.06.2019 06:00
How can a user delete a drawing object
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
You have a small company and want to keep your costs low, but it is important your employees share data. which network would provide you with the most economical solution?
Answers: 1
question
Computers and Technology, 23.06.2019 21:20
For positive constants a and b, the force between two atoms in a molecule is given f(r) = −a r2 + b r3 , where r > 0 is the distance between the atoms. note: a and b are upper case letters. (a) find f '(r) = (b) find the critical point for f(r). r = (c) find f ''(r) = (d) find the value of r so that f ''(r) = 0.
Answers: 1
question
Computers and Technology, 24.06.2019 20:30
Which key should you press to leave the cell as it originally was? a. delete b. cancel c. backspace d. enter
Answers: 1
You know the right answer?
Hello please, I would like assistance with an assignment in data structures and algorithms with part...
Questions
question
Mathematics, 21.10.2020 14:01
question
French, 21.10.2020 14:01
question
Mathematics, 21.10.2020 14:01
question
Mathematics, 21.10.2020 14:01
question
Mathematics, 21.10.2020 14:01
question
French, 21.10.2020 14:01
question
French, 21.10.2020 14:01
Questions on the website: 13722362