CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 WEB源码 JSP源码/Java

文件名称:smartgun

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2012-11-16
  • 文件大小:
    592byte
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

实现智能“智能枪”,它提供的谈话技巧,假设智能枪准备射击的目标,可能打枪的结果是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.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

smartgun.java

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com