Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Vliestion (1) while make testman I will generate an executable called Testman IX to test your program for Question (2). If you just issue make,

image text in transcribed

Vliestion (1) while make testman I will generate an executable called Testman IX to test your program for Question (2). If you just issue make, then both will be generated. (1) In this question, you will re-implement the question in Assignment 1 by using vectors instead dynamic arrays. All the functionalities are the same. Of course, you need to make appropriate changes to the function declarations by using vectors instead of pointers to strings or string arrays). See below. Also you need to separate the function declarations from the function implementations. (You are starting the journey to OOP.) Function declaration is put into dictionary.h while function implementation is put into dictionary2.cc. Your main function is in implementation is correct. a file called testDictionary.cc, to test whether your For your reference, the functions you need to implement have the following specifications. // Add aword into the dictionary // If aword already exists in the dictionary, display "aword is already added." // Otherwise, add it to the dictionary and display "aword is added." void myAdd(vector& dictionary, string aWord); // Delete aword from the dictionary. // If aword does not exist in the dictionary, display "aword is not found." // Otherwise, delete it from the dictionary and display "aword is deleted." void myDelete(vector& dictionary, string a Word); // Search aword in the dictionary. // if aword does not exist in the dictionary, display "aword is not found." // Otherwise, display "aword is found." and display the number of comparisons. void mySearch(const vector dictionary); // Display "bye bye" and exit to the terminal's prompt. void myExit; // uses linear search to look for aword in a list. Returns true // if found and false if not. Also returns in the "count" parameter the // number of comparisons needed. pos tells which vector element is // equal to aword bool linearSearch(const vector

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems On GPUs In Databases

Authors: Johns Paul ,Shengliang Lu ,Bingsheng He

1st Edition

ISBN: 1680838482, 978-1680838480

More Books

Students also viewed these Databases questions

Question

3. Why do people create new things?

Answered: 1 week ago