Question: 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,

 Vliestion (1) while make testman I will generate an executable called

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!