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

  Write a program to crypt its input accordingly

Write a program to crypt its input according to a specified transformation scheme

  Computer programming techniques

Construct a program from a design and use appropriate functions

  Create a program for a company named retail-mart

Prompt the user to enter an item name (one word only), a quantity and a price. For this step, in addition to functionality, I'll be looking at: location of the variable declarations; appropriateness of data types selected; appropriateness of the va..

  Write the code

Write a program that allows an instructor to keep a grade book. Each students has scores for exams, homework assignments, and quizzes.

  Loops and if conditions

Write a program that requests a password

  Write a program for find greatest common divisor

Write code for a recursive implementation of Euclid's algorithm

  Write a program using vectors and iterators

Create a program that uses at least two functions that will be called from your main. This program is a number game program that asks for parts of your phone and after manipulating it mathematically, eventually outputs your entire phone number. The d..

  Operating system and cpu scheduling

Operating System and CPU Scheduling

  Structured programming using procedural languages

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

  Give students practice in writing and calling their function

To give students practice in writing and calling their own functions. To give students practice in implementing and planning complex programs.

  Create a template class

Create a template class, SVector, that implements a constructor

  Write a webservices application

Write a webservices application that does a simple four function calculator

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