Lab II TechSupport

时间:2016-01-01 13:39:02
【文件属性】:

文件名称:Lab II TechSupport

文件大小:2KB

文件格式:ZIP

更新时间:2016-01-01 13:39:02

java

TechSupport is a program intended to provide technical support for customers of the fictitious DodgySoft company. Some time ago, DodgySoft had a technical support department with people sitting at telephone where customers could call to get advice and help with their technical problems with the DodgySoft products. Recently, though, business has not been going so well, and DodgySoft decided to get rid of the technical support department to save money. They now want to develop the TechSupport system to give the impression that support is still provided. The system is supposed to mimic the responses a technical support person might give. Customers can communicate with the technical support system online. The plan is that we shall have a set of words that are likely to occur in typical questions and we will associate these words with particular responses. If the input from the user contains one of our known words we can generate a related response. To make it more nature, one word may be associated with several different answers which will be randomly picked when the word encountered. The user interface is quite straightforward: The user inputs a sentence and the program answers. Your program should be able to split the user input into words and find "key words" inside them. Then for every key word, try to decide a "suitable" (random) answer and print it out. For a sentence with more than one key word, you may have your own way to deal with it, like to print only one or all of them.


【文件预览】:
lab2
----DodgySoft 说明.txt(561B)
----DodgySoft.java(4KB)

网友评论

  • 没什么用处。。这个作业还是好些的_(:зゝ∠)_
  • 与作业要求不一致,没什么价值的程序
  • java作业啊....这个程序能给个思路吧 实际交作业还需要再改改
  • 有一点问题。多个结果就不符合要求了。
  • 没有多大用处。。。。。一个二进制文件
  • 一个关键字对应多个结果的话无法随机输出
  • 一个关键字对应多个结果的话无法随机输出
  • 这个程序不能按照要求随机输出。