11.number Guessing Game
11.number Guessing Game
ABSTRACT..............................................................2
FLOWCHART...........................................................3
CODE......................................................................4
OUTPUTS................................................................7
Hardware specs......................................................9
Software requirements.........................................10
Bibliography.........................................................12
1 | Page
ABSTRACT
2 | Page
FLOWCHART
3 | Page
CODE
package guessinggames;
import javax.swing.JOptionPane;
/**
*
* @author CBSE2022
*/
public class Guessinggames {
4 | Page
while (userAnswer != computerNumber)
{
String response =
JOptionPane.showInputDialog(null,"Enter a guess
between 1 and 100", "Guessing Game",
JOptionPane.QUESTION_MESSAGE);
userAnswer = Integer.parseInt(response);
JOptionPane.showMessageDialog(null, ""+
determineGuess(userAnswer, computerNumber,
count));
count++;
}
}
6 | Page
OUTPUTS
7 | Page
Hardware specs
8 | Page
WINDOWS 7 ULTIMATE
RATING : 5.1
PROCESSOR : INTEL CORE I3
RAM : 4GB
TYPE : 32 BIT OS
DISK DRIVES : TOSHIBA
DISPLAY ADAPTERS : INTEL HD GRAPHICS 510
MONITORS : GENERIC PNP MONITORS
USB : INTEL USB 3.0 EXTENSIBLE HOST
CONTROLLER
9 | Page
Software requirements
Windows :
Windows 10 (8u51 and above)
Windows 8.x (Desktop)
Windows 7 SP1
Windows Vista SP2
Windows Server 2008 R2 SP1 (64-bit)
Windows Server 2012 and 2012 R2 (64-bit)
RAM: 128 MB
Disk space: 124 MB for JRE; 2 MB for Java Update
Processor: Minimum Pentium 2 266 MHz
processor
Browsers: Internet Explorer 9 and above, Firefox
Mac :
Intel-based Mac running Mac OS X 10.8.3+, 10.9+
Administrator privileges for installation
64-bit browser
10 | P a g e
Linux :
Oracle Linux 5.5+1
Oracle Linux 6.x (32-bit), 6.x (64-bit)2
Oracle Linux 7.x (64-bit)2 (8u20 and above)
Red Hat Enterprise Linux 7.x (64-bit)2 (8u20 and
above)
Suse Linux Enterprise Server 10 SP2+, 11.x
Ubuntu Linux 12.04 LTS, 13.x
Ubuntu Linux 14.x (8u25 and above)
Ubuntu Linux 15.04 (8u45 and above)
Ubuntu Linux 15.10 (8u65 and above)
Browsers: Firefox
11 | P a g e
Bibliography
hackr.io
stackoverflow.com
github.com
geeksforgeeks.com
w3schools.com
12 | P a g e