Printablevector and printablelist

Assignment Help Basic Computer Science
Reference no: EM133295383

You will implement a polymorphic list. That is, you will create one parent class PrintableIterable and two child classes PrintableVector and PrintableList. Your parent class will function essentially as an ADT, with pure virtual methods for our standard suite of list functions:

insert(value, index)

remove(index)

get(index)

size()

toString() (This isn't a standard list function, but this is a printable iterable class. Your toString method should return a string representation of your iterable. You may optionally require overloading the << operator instead.)

Your child classes will extend PrintableIterable and implement these methods. However, you should not reimplement the full details of any of these methods. Instead, PrintableVector and PrintableList will act as wrappers around the existing Vector and List implementations. When you construct a PrintableVector, it should construct a new Vector as one of its fields. Inserting into PrintableVector will simply consist of inserting into its internal Vector, and similar for each other method. Your toString method will need to be directly implemented.

You should test that your classes and methods behave appropriately, but you will not need to submit anything besides the (commented) header file itself.

One header file containing the definitions and implementations of all three classes.

Reference no: EM133295383

Questions Cloud

Company achieve competitive advantage in industry : Critically evaluate how the information systems would help the company achieve competitive advantage in the industry.
Sampling and strengthens generalizability of findings : Describe one method that removes bias from sampling and strengthens the generalizability of findings.
What rule is applicable for the onatrio statutory limitation : What rule is applicable to this Case study: Common Law liability rule or the Ontario Statutory Limitation? how much would you pay the guest for his loss?
Types of software engineering tools : Describe in 8-10 lines those types of software engineering tools:
Printablevector and printablelist : You will implement a polymorphic list. That is, you will create one parent class PrintableIterable and two child classes PrintableVector and PrintableList.
What conditions they should advise members to manufacture : What conditions they should advise members to manufacture and sell more electric cars or to continue developing more efficient combustion-engine cars
What would the price be and why : What would the price be, and why? When is payment due? By when must be delivery be made? Where must delivery be made?
Favorite hobby or interest will be displayed : Write a program that will display your name, then when the user presses sw1 (d8) your favorite hobby or interest will be displayed.
Graphical simulation of the motion of a projectile : ENGFF003 Computer Methods, University of Nottingham, Projectile Motion Simulator - To create a script that produces a graphical simulation of the motion

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Disaster and comprehensive recovery test

A simulated disaster and comprehensive recovery test may involve many of an organization's key personnel for several days:

  Investment decisions-mortgages

New regulatory requirement imposed on banks and financial institutions may have impacted a bank's ability to generate mortgages for home buyers.

  Ratio of long-term debt to long term debt plus

The Arkham Company has a ratio of long-term debt to long term debt plus equity of .27 and a current ratio of 1.3. Current liabilities are $830

  Modern growth theories of economic growth

What policies are suggested by each of the theories that might be successful in spurring growth in a metropolitan area?

  Newest trends driving recommendation engines

What are the newest trends driving recommendation engines? How does artificial intelligence change the way businesses and organization interact with customers?

  Compare inferential and descriptive statistics

Compare and contrast inferential and descriptive statistics. How are each used in health care? Outline an example of a specialized facility within community.

  Establish a checklist for evaluation in design

Establish a checklist for evaluation in design from the point of view of functional coherence, testability, dependability, and physical installation. Compare the fundamental design decisions in the three real-time architecture projects SPRING, MAF..

  Describe the approximate sampling distribution model

We want to find out if the mean age of first marriage has increased during the past 40 years.

  Computer system life cycle process

What is the role of the CSPM in the initiation phase of the Computer System Life Cycle process?

  Describe the boot process of cisco ios routers

Describe the boot process of Cisco IOS routers. Please go to SHARC, Library Resources, to utilize ProQuest to search for information on this topic.

  How much value will the firm gain or lose if project

How much value will the firm gain or lose if Project L is selected over Project S? Show work.

  List the six subject subareas of computer science called

List the six subject subareas of computer science called applications areas that relate to the computer's use as a tool.

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