The Driver

By a "driver," we mean a piece of code that coordinates the calls to the member functions that we have so far. Go back to your function main.
  1. To begin, remove the calls to your keywords reply function.
  2. The program should write an introductory message which informs the user about the purpose of the program.
  3. The program should then enter a loop where it reads in sentences from the user until they type "bye". In order to read in a sentence, simply cut and paste the function get_a_line into your program.
  4. The sentence entered by the user (except of course for "bye") should be passed to the reply function of your keyword object. If this function finds a keyword in the users sentence, that's great. It will be printed to the screen, and the function returns "true." In this case, you should not call reply of the random object. You should only call that function if reply of keyword returns false.
  5. Test your program.