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

  Show the deatils of an emplyoee - c programming

Show the deatils of an emplyoee in a neat format.

  C++ programming uml diagrams

The goal of this lab is to better familiarize you with polymorphism and the factory design pattern, two key components in Assignment

  Write a bouncing ball video game

The balls bounces within the screen where the two horizontal walls are fixed

  Create program that uses functions and reference parameters

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

  Create a template class

Create a template class, SVector, that implements a constructor

  Implementation of classes

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

  Public transport fare ticketing system

Implement and test a public transport fare ticketing system.

  Design a simple game of blackjack

Prepare a simple game of blackjack using object oriented programming.

  Prepare a linux shell

Prepare a linux shell (in other words, write a C/C++ program) that will recursively prompt for input from the user. The shell should prompt as

  Structured programming using procedural languages

A a program that is called "Playing with Numbers or Letters".

  Prepare a program that uses at least two functions

Prepare a program that uses at least two functions that can be called from your main.

  Implement the delivery company

Implement the delivery company using the classes given in the class diagram above.

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