文件名称:guncantalk
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:618byte
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
实现智能“智能枪”,它提供的谈话技巧,假设智能枪准备射击的目标,可能打枪的结果是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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.