辅导讲解C/C++、辅导讲解answersVector程序、代作java程序
- 首页 >> OS编程CS2 Final Project
Redo chapter 6 problem 7 to create an online counselor for the Computer Science department at PCC. You will receive a question from the user. Create a file which has as many answer as possible. Try to think ahead and come up with the questions someone may ask. Parse the questions to find keywords. Create a vector called answersVector to store all answers in your file. Create another vector of record containing keyword and key. Keys will refer to the answers in the first vector. Sort KeywordsVector.
Ask user a question – Parse question to keywords – look through your KeywordsVector and create percentage of possibilities for keys – you may have zero to many keys depending to user’s question
1.Display the highest possibility
2.If you have multiple possibilities choose one randomly with a message that says , “I’m not sure if I understood your question correctly but this is the closest answer I have for you
3.If you cannot come up with an answer in your list.
a.Ask the user for email address and let her/him know you will get back to her/him with correct answer
b.Save email address, possibly first name and last name with the question in a file called separated with spaces
c.update your database with new answer
d.For extra credit – create an email and send it to someone who may have the answer and then update your database
4.If you work in a group or for extra credit – visit http://ict.usc.edu/prototypes/vhtoolkit/ to find computer character with an API which has speech recognition
5.If you work in a group or for extra credit – Create GUI for this project