Question
Can someone solve the todo parts of the following problem. #include #include VectorADT.h //GIVEN template VectorADT ::VectorADT() { dataArray= new T*[SIZE]; count=0; } // TODO
Can someone solve the todo parts of the following problem.
#include
//GIVEN template
// TODO // double the size of the dataArray // create a temporary dataArray of double the size
// copy over the current data Array and then delete it // use REM documentation template
// TODO // appends an element to the end of the VectorADT // increments count by 1 // if run out of SIZE, resize the vector // REM documentation template
// TODO // returns a copy of the element from the end of the VectorADT // does not delete any element // no resize of the vector // REM documentation template
// TODO // removes an element from the end of the VectorADT // decrements size by 1 // no resize of the vector // REM documentation template
// GIVEN template // GIVEN template //FILL IN THE BLANK FOR COMPARISON template /*if () { minValue=dataArray[j]; minIndex=j; }*/ steps++; } dataArray[minIndex]=dataArray[i]; dataArray[i]=minValue; } return steps; } //GIVEN template //GIVEN template //GIVEN template // TODO // USE template // inserts the object at the given INDEX position NOT chart position // Does NOT adjust chart position // THROWS exception if index out of bounds // right adjusts the elements to the right of the inserted object // returns number of adjusted steps template // TODO // USE template // removes the object at the given INDEX position NOT chart position // DOes NOT adjust chart position // THROWS exception if index out of bounds // left adjusts the elements to the right of the inserted object // returns number of adjusted steps template // TODO // Linear search // use the overloaded == operator of the Song objects // returns -1 if not found else returns the found index template
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started