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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 17:30, kenyasutton10
What are the most commonly found items in the trash according to the municipal solid waste report?
Answers: 1
image
Computers and Technology, 23.06.2019 23:40, lexiecooley
4. what is the reason for including the following code snippet in the header file animal. h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
image
Computers and Technology, 24.06.2019 00:50, JakeCline
Which of the following is not a key player in the sale of travel products?
Answers: 2
image
Computers and Technology, 24.06.2019 01:00, cheycheybabygirl01
How can the temperature of a room be raised by 5degreesf?
Answers: 1
You know the right answer?
Hello please, I would like assistance with an assignment in data structures and algorithms with part...

Questions in other subjects:

Konu
Mathematics, 04.11.2021 14:00