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, 22.06.2019 06:00
Write a function that draws a pool ball. this function should take as parameters, the color, the number that should go on the pool ball, and the location of the center of the pool ball. the radius of the pool balls should be pool_ball_radius, and the font of the number should be pool_ball_font. the text of the pool ball font should be white. drawpoolball(color.orange, 5, 100, 100); drawpoolball(color.green, 6, 50, 200); drawpoolball(color.red, 3, 150, 350); drawpoolball(color.blue, 2, 250, 140); to center the numbers on the pool ball, you should use the getwidth() and getheight() methods. you are allowed to call these methods on your text object, such as txt.
Answers: 3
question
Computers and Technology, 22.06.2019 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
question
Computers and Technology, 23.06.2019 07:50
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
What is the local portion of the e-mail address below? [email protected] a.) @ b.) biz c.) gumchewer d.) twrigley
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
History, 07.09.2021 01:20
question
Mathematics, 07.09.2021 01:20
question
Mathematics, 07.09.2021 01:20
Questions on the website: 13722361