文件名称:GuessNumberGame
-
所属分类:
- 标签属性:
- 上传时间:2014-04-21
-
文件大小:19.06kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
实验1 猜数字游戏
实验类型:验证性
实验目的:掌握Java语言数据类型、基本输入输出、控制语句和方法的使用。
实验内容:
编写程序,项目名与类名均为GuessNumberGame。
每次游戏程序随机产生一个0-9之间的整数,要求玩家输入自己猜的数字,并对用户输入数字进行检查,进行如下提示:
如果用户猜对了,则提示:恭喜你,猜对了。结束本次游戏。
如果用户猜错了,则提示:你猜的数字太(大或小)了。要求用户继续猜。
如果连续3次没有猜对,则提示:游戏失败。
一次游戏结束时,提示用户是否继续新的游戏,果用户选择继续,则开始新一次游戏,否则输出:你共进行了XXX次游戏,成功XXX次,失败XXX次。然后结束程序运行。
提交要求:打包为可以执行的JAR文档,其中要包含源程序文件。-Experiment 1 guessing game experiment type: confirmatory experimental purposes: to grasp the Java language data types, basic input output, control statements, and methods to use. Experiment: write a program, project name and class name are GuessNumberGame. Every game program randomly generates an integer between 0-9, requires players to enter their guess numbers, check numbers and user input, the following prompt: If you guess right, the prompt: Congratulations, you guessed it . The end of this game. If you guess wrong, you are prompted: Guess the number too (big or small) a. Requires the user to continue to guess. If you have not guessed it three consecutive times, then Tip: game failed. When a game ends, the user is prompted whether to continue a new game, if the user chooses to continue, then start a new game, otherwise the output: You were conducted XXX Game successful XXX times fail XXX times. Then the end of the program to run. Submission Requirements: packaged as JAR documents c
实验类型:验证性
实验目的:掌握Java语言数据类型、基本输入输出、控制语句和方法的使用。
实验内容:
编写程序,项目名与类名均为GuessNumberGame。
每次游戏程序随机产生一个0-9之间的整数,要求玩家输入自己猜的数字,并对用户输入数字进行检查,进行如下提示:
如果用户猜对了,则提示:恭喜你,猜对了。结束本次游戏。
如果用户猜错了,则提示:你猜的数字太(大或小)了。要求用户继续猜。
如果连续3次没有猜对,则提示:游戏失败。
一次游戏结束时,提示用户是否继续新的游戏,果用户选择继续,则开始新一次游戏,否则输出:你共进行了XXX次游戏,成功XXX次,失败XXX次。然后结束程序运行。
提交要求:打包为可以执行的JAR文档,其中要包含源程序文件。-Experiment 1 guessing game experiment type: confirmatory experimental purposes: to grasp the Java language data types, basic input output, control statements, and methods to use. Experiment: write a program, project name and class name are GuessNumberGame. Every game program randomly generates an integer between 0-9, requires players to enter their guess numbers, check numbers and user input, the following prompt: If you guess right, the prompt: Congratulations, you guessed it . The end of this game. If you guess wrong, you are prompted: Guess the number too (big or small) a. Requires the user to continue to guess. If you have not guessed it three consecutive times, then Tip: game failed. When a game ends, the user is prompted whether to continue a new game, if the user chooses to continue, then start a new game, otherwise the output: You were conducted XXX Game successful XXX times fail XXX times. Then the end of the program to run. Submission Requirements: packaged as JAR documents c
(系统自动生成,下载前可以参看下载内容)
下载文件列表
GuessNumberGame/
GuessNumberGame/build/
GuessNumberGame/build/built-jar.properties
GuessNumberGame/build/classes/
GuessNumberGame/build/classes/GuessNumberGame.class
GuessNumberGame/build/empty/
GuessNumberGame/build/generated-sources/
GuessNumberGame/build/generated-sources/ap-source-output/
GuessNumberGame/build.xml
GuessNumberGame/dist/
GuessNumberGame/dist/GuessNumberGame.jar
GuessNumberGame/nbproject/
GuessNumberGame/nbproject/build-impl.xml
GuessNumberGame/nbproject/genfiles.properties
GuessNumberGame/nbproject/private/
GuessNumberGame/nbproject/private/config.properties
GuessNumberGame/nbproject/private/private.properties
GuessNumberGame/nbproject/private/private.xml
GuessNumberGame/nbproject/project.properties
GuessNumberGame/nbproject/project.xml
GuessNumberGame/src/
GuessNumberGame/src/GuessNumberGame.java
GuessNumberGame/build/
GuessNumberGame/build/built-jar.properties
GuessNumberGame/build/classes/
GuessNumberGame/build/classes/GuessNumberGame.class
GuessNumberGame/build/empty/
GuessNumberGame/build/generated-sources/
GuessNumberGame/build/generated-sources/ap-source-output/
GuessNumberGame/build.xml
GuessNumberGame/dist/
GuessNumberGame/dist/GuessNumberGame.jar
GuessNumberGame/nbproject/
GuessNumberGame/nbproject/build-impl.xml
GuessNumberGame/nbproject/genfiles.properties
GuessNumberGame/nbproject/private/
GuessNumberGame/nbproject/private/config.properties
GuessNumberGame/nbproject/private/private.properties
GuessNumberGame/nbproject/private/private.xml
GuessNumberGame/nbproject/project.properties
GuessNumberGame/nbproject/project.xml
GuessNumberGame/src/
GuessNumberGame/src/GuessNumberGame.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.