Create a class called stringlist

Assignment Help Basic Computer Science
Reference no: EM131486187

Programming Principles

C++

This assignment will require you to create a class called stringList. This class will allow you to store up to 20 strings in a list, which will be kept as an array inside the class. The class will also have a number of functions as follows:

  1. void add(string added) - A function that will take in a string and that will add it into the array of the stringList class.
  2. bool remove (string removed) - A function that will remove the string defined by the parameter. It will return true if it finds the string and removes it, otherwise it will return false.
  3. bool compareString(string find) - A function that takes in a string and returns true if the string is found in the array of the stringList.
  4. bool replace(string x, string y) - A function that takes two strings, finds if string x exists in the array, and if it does, replaces it with string y, and returns true. Otherwise, it returns false.
  5. bool anagram() - A function that compares all strings in the array of the stringList class, and if it finds any string that is an anagram of another, it returns true. Otherwise it returns false.

The class should be submitted inside an appropriate .h and .cpp file. A driver program should also be included that shows the operation of the stringList class.

Reference no: EM131486187

Questions Cloud

What was stolen from berlins bode museum : In March, what was stolen from Berlin's Bode Museum? What international brand of beer might be banned in Hungary due to its logo?
Digitizing so rapidly that users are scrambling to adapt : The United States is digitizing so rapidly that most users are scrambling to adapt. What are the implications of digitalization for college Students in general?
Troubleshooting various security problems : A customer has requested help with troubleshooting various security problems. Since the computer is for home use, the customer wants to safeguard.
Calculate the present value of the annual savings : What would be the net present value of a microwave oven that costs $159 and will save you $68 a year in time and food away from home?
Create a class called stringlist : This assignment will require you to create a class called stringList. This class will allow you to store up to 20 strings in a list.
General information forum-normalization terms : You may want to review the definitions in the General Information Forum - Normalization Terms and Techniques topics - they may be easier to understand.
What are the various categories of the service mix : What is integrated marketing and how does it fit in a marketing plan? What are the various categories (5) of the service mix?
Write additional lesson plan targeting student new benchmark : Write additional lesson plans targeting the student's new benchmark. Plan next step of instruction for student based on his or her present level of performance.
Define financial and opportunity costs : Vehicle 1: A three-year-old car with 45,000 miles, costing $16,700 and requiring $1,385 of immediate repairs.

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