Homework 6DetailsExercises 6.45 and 6.46
Do these exercises by modifying the SupportSystem and Responder classes in the
tech-support-complete project.
For exercise 6.45, examples of synonyms are "crash", "crashes", "crashed".
Note that you should not add more entries to the responseMap.
Instead, create a new HashMap (call it synonymMap) that maps synonyms to a unique
key in the responseMap (for example, map "crash", "crashes" and "crashed" to "crash" in the synonymMap).
For exercise 6.46, someone might type in "my windows PC crashed."
The SupportSystem class should print out responses for both "windows" and "crashed".
You should not have the Responder class do any printing.
Also, be sure to print each response out only once
(i.e., "crash crashed" should not print the same response twice).
When you have completed this assignment, select "Create Jar File ..." from the File menu in BlueJ.
Check "include source" and "include Bluej project files".
Save the file with the name bassett-tech-support.jar (except use your name instead of bassett).
Then upload the "jar" file into Moodle.
|