文件名称:Guessinggame
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2kb
- 下载次数:
- 0次
- 提 供 者:
- 覃**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
猜数字游戏
1.实验目的
使用if…else和循环语句解决问题。
2.实验要求
编写一个Java应用程序,实现以下功能:
(1)程序随机产生一个1~100间的整数;
(2)用户在输入对话框中输入自己的猜数;
(3)程序根据用户猜测的数,给出提示信息,分别是:“猜大了”、“猜小了”和“猜对了”;
(4)如果用户没猜对,可根据提示信息再次输入数,直到猜对为止。
-Guessing game
1. Purpose of the experiment using the if ... else statements and loops to solve the problem. 2. Experiments required to write a Java application, to achieve the following functions: (1) program to generate a random integer from 1 to 100 (2) user input dialog box, enter your own guessing (3) program the user to guess the number of given prompts, namely: " guess big" , " guess smaller" and " guessed it" (4) If the user did not guess right, can re-enter the number of reminder, until the guess on the up.
1.实验目的
使用if…else和循环语句解决问题。
2.实验要求
编写一个Java应用程序,实现以下功能:
(1)程序随机产生一个1~100间的整数;
(2)用户在输入对话框中输入自己的猜数;
(3)程序根据用户猜测的数,给出提示信息,分别是:“猜大了”、“猜小了”和“猜对了”;
(4)如果用户没猜对,可根据提示信息再次输入数,直到猜对为止。
-Guessing game
1. Purpose of the experiment using the if ... else statements and loops to solve the problem. 2. Experiments required to write a Java application, to achieve the following functions: (1) program to generate a random integer from 1 to 100 (2) user input dialog box, enter your own guessing (3) program the user to guess the number of given prompts, namely: " guess big" , " guess smaller" and " guessed it" (4) If the user did not guess right, can re-enter the number of reminder, until the guess on the up.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
GuessNumber.class
GuessNumber.java
Guessing game.doc
GuessNumber.java
Guessing game.doc