Implement the backend for a list

Assignment Help Basic Computer Science
Reference no: EM13167766

Using an array to implement the backend for a list, create a list class that can contain integers and implements all of the following funtionality via the following functions:

  • List() - the constructor
  • List (const List& 1) - a copy constructor
  • Void operator=(const List& 1) - a cope constructor
  • void FIrst () - navigate to begginig of list
  • void Last () - navigates to end of list
  • void SetPos(int pos) - navigates to specific position in list
  • void Prev() navigates to previous element in the list
  • void Next () - navigates to next element in list
  • int GetPos () - returns the location of the current element (or -1)
  • int GetSize () - returns the size of (number of elements in) the list
  • void InsterBefore(int data) - inserts an item before the current element
  • void InsterAfter(int data) inserts an item after the current element
  • void Remove () - removes the current element
  • void Replace (int data) - replaces the current element with specified value
  • bool IsEmpty()- returns if list is empty
  • bool IsFull() - returns if list is full
  • List operator +(const List& 1) const - returns the concatenation of two lists
  • bool operator==(const List& 1) const- returns if two lists are equal (by value)
  • boo operator!=(const List& 1) const - returns if two lists are not equal (by value)
  • ostream& operator<<(ostream& out, const List& 1)- returns a string representation of the entire list

Reference no: EM13167766

Questions Cloud

Calculate the uncertainty in the distance of the electron : Calculate the uncertainty in the distance of the electron (in Angstroms) at any point during its 25 Angstrom journey. (HINT: remember velocity = distance/ time)
Sdlc and the role of analysis and design : In this unit, you have examined phases of the SDLC and the role of analysis and design in the overall process. A question remains, however, about the analysis and design. What methodology or approach should you use? One common methodology is the ..
Create an output array using input x values 1 through 10 : The function is y=(x)/(sqrt(x)), create an output array using input x values 1 through 10. I can't seem to get this to work for some reason...
Who has the most money in their account at age 70 : Assuming both retire at 70, and that the interest rate both get on their investments is 10% (compounded annually) who has the most money in their account at age 70? Explain why you pick the answer you pick.
Implement the backend for a list : Using an array to implement the backend for a list, create a list class that can contain integers and implements all of the following funtionality via the following functions:List() - the constructor List (const List& 1) - a copy constructor
Write a constant declaration named arraysize : Given the following array definition, write a constant declaration named ArraySize that automatically calculates the size in bytes, of the array
What is the boiling point elevation : What is the boiling point elevation and boiling point of a solution that contains 1.20 moles of non-ionic solute in 800.0 g of H2O?
Determine the selling price of the house : Write and solve an equation to determine the selling price of the house. Jamie sold her house for x dollars. The real estate agent received a 5% commission and Jamie received $197,125.
What is the concentration of na ions in the final solution : if 100 mL of 0.800 M Na2SO4 is added to 200 mL of 1.20 M NaCl, what is the concentration of Na ions in the final solution?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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