Construct vector and linked lists data structures

Assignment Help C/C++ Programming
Reference no: EM134416

Task 1

For your first task, you will prepare sorted versions of the Linked Lists and Vector data structures developed in class. The easiest way to accomplish this is to derive sorted versions of Vector and Linked List and alter their add methods so that they always place values in the correct location.

For an extra challenge, try creating a single class that accepts any generic Indexed class as a parameter (this is what I did) that handles the extra sorting logic.

Task 2

For this task you must add methods that add input and output flexibility to the Vector and LinkedList classes:

Constructors that accept a reference to another indexed collection

The goal of this additional constructor is to convert between indexed collections. For example, this constructor will allow you to use an existing LinkedList's data as the foundation of a newly created Vector.

Constructor that accepts a basic C-style array

The goal of this constructor is to convert an existing C-style array into one of our more powerful data structures. This constructor should have two parameters: A pointer to the array, and an integer indicating the number of items in the array.

Method that converts the data structure into a C-style array

The goal of this function is to convert our more powerful data structures back into a basic C-style array. Note that this method should return a pointer to a newly created dynamic array.

Reference no: EM134416

Questions Cloud

What do you meant by logistics performance index : What do you meant by Logistics Performance Index?  How can it be used? Give an example. Evaluate the expected number of trucks waiting in the queue to be unloaded and evaluate the expected time in the queue- that is the expected time a truck has..
Swot analysis be used to make straight training activities : How could SWOT analysis be used to make straight training activities with business strategies and goals
What will be his cash flow in the proposed capital structure : Mr. Dimitry owns 1000 shares of equity. What is his cash flow in its current capital structure (leveraged D/E = 2.3) What will be his cash flow in the proposed capital structure (levered) if he keeps all his 1,000 shares
Find the coefficient of friction between crate and floor : Find the coefficient of friction between crate and floor
Construct vector and linked lists data structures : You will prepare sorted versions of the Linked Lists and Vector data structures developed in class
How much work is completed on the box by the applied force : How much work is completed on the box by the applied force
What is magnitude of the unknown force : What is magnitude of the unknown force
Quantitative analysis for decision making assignment : Graphical Solutions in Linear Programming have limited number of decision variables. What is the maximum number of decision variables used in graphical solutions?
What is value of earths magnetic field : What is value of Earths magnetic field

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd