文件名称:smartgun
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- chao*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实现智能“智能枪”,它提供的谈话技巧,假设智能枪准备射击的目标,可能打枪的结果是0至10分,“智能枪”的发言,将其对词语的选择了依赖在打枪的结果,例如,如果你得到10分,它可能会说“这是上午10点12分现在,恭喜你,你的分数是10!”
如果你0,它可能会说“这是日下午13时12分现在,对不起,你错过了,请再试一次!”。您需要得到一个介于0和10个随机数来表示射击的结果,通过使用日历或其他显示当前时间。最后,打印一条消息,告诉用户的“当前”时间和一个简单的短语,告诉用户打枪结果。
-1. Implement an intelligent “Smart Gun” that provides conversation skill, suppose the smart gun is ready to shoot the target, the possible shoot result will be from 0 to 10 points, the “Smart Gun” will speak out by making its choice of phrases depend on the shoot result, For example, if you get 10 points, it may say “it’s 10:12 AM now, Congratulations, you score is 10!”, if you get 0, it may say “it’s 13:12 PM now, sorry, you missed it, please try it again!”. You need to get a random number between 0 and 10 to represent the shoot result, and the current time by using the Calendar or other class. Finally, print a message telling the user the "current" time and a simple phrase that depends on the shoot result.
如果你0,它可能会说“这是日下午13时12分现在,对不起,你错过了,请再试一次!”。您需要得到一个介于0和10个随机数来表示射击的结果,通过使用日历或其他显示当前时间。最后,打印一条消息,告诉用户的“当前”时间和一个简单的短语,告诉用户打枪结果。
-1. Implement an intelligent “Smart Gun” that provides conversation skill, suppose the smart gun is ready to shoot the target, the possible shoot result will be from 0 to 10 points, the “Smart Gun” will speak out by making its choice of phrases depend on the shoot result, For example, if you get 10 points, it may say “it’s 10:12 AM now, Congratulations, you score is 10!”, if you get 0, it may say “it’s 13:12 PM now, sorry, you missed it, please try it again!”. You need to get a random number between 0 and 10 to represent the shoot result, and the current time by using the Calendar or other class. Finally, print a message telling the user the "current" time and a simple phrase that depends on the shoot result.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
smartgun.java