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

  Find out winner in card game

When there is tie, nobody loses. If first two cards total 8 or 9, hand is called a "natural" and it wins automatically, unless both hands have equal value "naturals", in which case it's a tie.

  Actions-hard disk crash and all data backed up are lost

You come to work on a Monday morning and find that the office computer is not working. The system manager informs everyone that the computer's hard disk crashed and that all datat that wer not backed up are lost. What do you do?

  An instruction set which includes transcendental function

Describe a major application which would need each of the following types of instruction set

  Explain various kinds of storage devices

Explain what storage devices are, comprising the explanation of storage media. Write examples of at least three various kinds of storage devices.

  Cultural factors contribute to success of nanotechnology

What is the Nanotechnology, and identify the cultural factors that may contribute to the success or failure of this technology.

  Explain boolean formula is minimal

Boolean formula is minimal if there is no shorter Boolean formula which is equivalent to . Let MIN-FORMULA = { | is a minimal formula }. (a) Show that MIN-FORMULA (b) PSPACE.

  First integer of input refers to the total weight the ship

First integer of input refers to the total weight the ship can carry. Second integer refers to the number of cargo present and the rest of the integers represents the individual weight of the cargo

  What strategies implement in terms of career development

What strategies you will implement in terms of your career development. How these strategies specifically relate to your career goals and advancement.

  Explain cause and effect transition happen

One process could cause another process to make a transition. Under what circumstance, if any, would the following. Cause and effect transition happen ?

  Explain about how device works

Write down what first comes to mind as to what is good and bad about the way the device works. The range of tasks a typical user would want to do using it.

  Write z schemas defining state of the system card validation

Write Z schemas defining the state of the system, card validation (where the user's identifier is checked) and cash withdrawal.

  Probability and statistics for computer science

Probability and Statistics for Computer Science  - What is the probability that V will get the project and if V gets the project, what is the probability that W did not bid

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