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

  What is the public interface of the counter class

what is the public interface of the counter class in section instance variables and encapsulation? How does it differ from the implementation of the class?

  Storing and compiling a large amount of data

Because information systems are able to store and compile a large amount of data, many people worry that, their private data will end up in the wrong hands. Explain your position.

  Corporate goal for scr new training activity

We require corporate goal for SCR which refers to new training activity. Create a draft to show Jesse. Draft project scope statement for TIMS system

  Reverse a sixteen-bit binary number by lc program

How to reverse a 16-bit binary number by LC-3 program? Program should assume that the word to be reversed is stored in memory location x3100.

  Performance of receiver-initiated load sharing algorithm

Predict the performance of receiver-initiated load sharing algorithm when entire system workload is generated at only a few nodes in the system instead of equally.

  Continue to keep a journal

Continue to keep a journal of your activities and experience of using SAP. Include a copy of your full journal as an appendix to the reflective essay.

  Calculate interest earned in one year

Calculate the interest earned in 1 year given starting account balance B and annual interest rate I and supposing simple interst, that is no compounding.

  Find minimum associativity needed of level cache

Determine the minimum associativity needed of the level 1 cache for consistent performance independent of both arrays' position in memory?

  Solve reasoning problem

If Abby is communicating, so is Randy. Vijay and Kevin are either both communicating or neither is. If Heather is communicating, then so are Abby and Kevin. Describe your reasoning.

  Given a coin such that the probability of observing heads

given a coin such that the probability of observing heads is ph=.4 and the probability of tails is pt=.6 compute the probability of observing 3 heads after 7 tosses.

  First instruction executed if we start machine with counter

Suppose the memory cells at addresses 00 through 02 contain the following bit patterns. What would be the first instruction executed if we start the machine with its program counter containing 00?

  Creating a hashing function

Suppose you are creating a hashing function to use for storing string data in hashtable. One Candidate hasing function would be to sum the ASCII or Unicode values for each character, and that result as the hashcode.

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