Guessinggame
代码说明:
说明: 猜数字游戏 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.)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!