Government Polytechnic Thane
Vision:
Guess The Number Game
Mission:
We are committed to,
● Provide an environment that values and encourages knowledge acquisitions with
effective curriculum implementation.
● Maintain well equipped laboratories to develop industrial competencies among the
students.
● Empower and motivate faculties towards building their domain expertise in
technology and management.
● Groom all round personality of students towards leadership, self-employment and
lifelong learning.
● Promote Industry Institute Interaction through training and placement services,
continuing education programs, consultancy & Technical services etc. for socio-
economic development.
Our Core Values are,
Ethics, Equity, Women Empowerment, Safety & Eco-friendly Practices.
1|P a g e
GOVERNMENT POLYTECHNIC THANE
Information Technology Department
Vision
Develop a simple java code for guess the number game
Mission
We are committed to –
M1 : Provide hands on skills with well equipped laboratories
M2 : Train faculty & staff to adapt changing technology.
M3: Develop IT professionals with entrepreneurial skills.
M4 : Inculcate ethical values, honesty, equity, women empowerment and safety.
Program Educational Objectives (PEOs)
PEO 1 : Provide socially responsible, environment solutions to information
technology related broad based problems adapting professional ethics.
PEO 2 : Adapt state-of-the-art of Information Technology techniques to work in
multi-disciplinary work environment.
PEO 3 : Solve broad-based problems individually and as a them team member
communicating effectively in the world of works.
2|P a g e
ASSESSMENT MANUAL
OF
EMERGING TRENDS IN COMPUTER AND INFOTMATION
TECHNOLOGY
Micro-project
CO5I Diploma program
MAHARASHTRA STATE BOARD
OF TECHNICAL EDUCATION,MUMBAI
(Autonomous)(iso-9001-2008)(ISO/ICE 27001:2013)
3|P a g e
GOVERNMENT POLYTECHNIC THANE
CERTIFICATE
This is to certified that following Third Year Information Technology
students have successfully and satisfactory completed their micro project
work, entitled “Develop a simple java code for guess the number game” in
partial fulfilment of the requirement for diploma in Computer Engineering
Academic Year 2022-2023.
SUBMITTED BY –
Sanjay Ambadas Sonavane (12)
Arnav Hitendra Thakur (30)
Ujwal Manish Ahaluwaliya (46)
Vighnesh Ankusk Mane (53)
Smt. Chaitali Mhase Smt. D.P. Sapkal Dr. N.N. Mhala
Subject Teacher H.O.D. PRINCIPAL
4|P a g e
PART - A PLAN Annexure I
Micro Project Proposal
---------------------------------------------------------------------------------------
Subject – Advanced Java Programming.
Title Of Project –Develop a simple java code for guess the number game.
---------------------------------------------------------------------------------------
1.0: Brief Introduction:
Guess the number game is only for the entertainment purpose Which can be play by only one player
at a time. This game is simple guessing game where a user is supposed to guess the number between
0 to 100.
2.0: Aim of the Micro-Project:
Aim of this micro project is to develop a simple java code for guess the Number game using advance
java and its components.
3.0: Course Outcomes Addressed.
Develop program using GUI Framework (AWT and Swing).
Develop program to handel event in Java Programming.
Handel events of AWT and Swings components.
5|P a g e
4.0 : Action Plan:
Name of
Planned start Planned
Sr.No Details of activity Responsible
date finish date
Team Members
Vighnesh Mane,
Finalized the group members and Arnav Thakur,
1 09/09/2022 10/09/2022
selection of Micro-Project Topic. Sanjay Sonavane,
Ujwal Ahaluwaliya
Vighnesh Mane,
Collecting information about the Arnav Thakur,
2 11/09/2022 17/09/2022
topic of our Micro-Project. Sanjay Sonavane,
Ujwal Ahaluwaliya
Arnav Thakur,
Preparation of our Micro-project
3 18/09/2022 21/09/2022 Sanjay Sonavane,
proposal.
Vighnesh Mane,
Submission of our Micro-project Arnav Thakur,
4 22/09/2022 26/09/2022
proposal. Sanjay Sonavane,
Ujwal Ahaluwaliya
Sanjay Sonavane,
6 Implementation of the project 27/09/2022 30/09/2022
Arnav Thakur
Testing and debugging of the Vighnesh Mane,
7 12/10/2022 15/10/2022
project Ujwal Ahaluwaliya
Vighnesh Mane,
Preparation of our micro project Arnav Thakur,
8 20/10/2022 26/10/2022
report Sanjay Sonavane,
Ujwal Ahaluwaliya
Vighnesh Mane,
Arnav Thakur,
9. Submission of final Micro project. 27/10/2022 29/10/2022
Sanjay Sonavane,
Ujwal Ahaluwaliya
6|P a g e
5.0 : Actual Resources used:
Name of resources
Sr. No Specifications Qty Remarks
required
1 Computer System with Windows 11 pro 1 ……
specification professional 64 bit
2 Software Microsoft office 2021 1 ……
3 Any other resources used Google chrome, 1 ……
Brave
4 Visual Studio Version 1.73.1 1 ……
6.0: Team Members:
Roll no Name of students Enrollment no
12 Sonavane Sanjay Ambadas 2001160174
Thakur Arnav Hitendra
30 2001160193
46 Ahaluwaliya Ujwal Manish 2001160210
53 Mane Vighnesh Ankusk 2001160217
7|P a g e
GOVERNMENT POLYTECHNIC THANE
MICRO PROJECT
Develop a simple java code for guess the number game
SUBJECT : ADVANCE JAVA PROGRAMMING
COMPUTER ENGINEERING
GOVERNMENT POLYTECHNIC,
THANE – 400612
2022-2023
8|P a g e
Project Report On
Develop a simple java code for guess the
number game
Submitted in practical fulfilment
Of
the diploma in engineering
(COMPUTER ENGINEERING)
Under the Guidance of
Ms. Chaitali Mhase
DEPARTMENT
OF
COMPUTER ENGINEERING
Submitted By:
Roll. no Name of students Enrollment no
12 Sanjay Ambadas Sonavane 2001160174
30 Arnav Hitendra Thakur 2001160193
46 Ujwal Manish Ahaluwaliya 2001160210
53 Vighnesh Ankusk Mane 2001160217
9|P a g e
TABLE OF CONTENTS
SR NO. CONTENT PAGE
NO.
01 Brief Description 11
02 Aims of Micro-Project 11
03 Course Outcomes Integrated 11
04 Actual Procedure followed. 11
05 Source Code & Output 12-17
06 Actual Resources Used. 18
07 Skill developed/Learning out of this Micro- 18
Project
08 Application 18
10 | P a g e
1.0 Rationale:
First, we decided to develop a program on Guess the number game under the Advance Java Programming, then
we are going to analyze the requirements of our project. After that we are starting to develop program for our
project with the use of javax.swing.*, java.awt.*, java.awt.event.* package of java . We also using if-else
statements and Math.random predefined function in our program. We also using action listeners in the code and
after completing our project we are going to make report.
2.0 Aims/Benefits of the Micro-Project
To make a Guessing the number game using Advance Java Programming.
3.0 Course Outcomes Achieved
Develop program using GUI Framework (AWT and Swing)
Handle events of AWT and Swing components
Develop programs to handle events in Java programming.
4.0 Literature Review
1) Java Package: -
• Javax.swing.* :- Java Swing tutorial is a part of Java Foundation Classes (JFC) that is used to create window-
based applications. It is built on the top of AWT (Abstract Windowing Toolkit) API and entirely written in
java. Unlike AWT, Java Swing provides platform-independent and lightweight components.The javax.swing
package provides classes for java swing API such as JButton, JTextField, JTextArea, JRadioButton, JCheckbox,
JMenu, JColorChooser etc.
• Java..awt.event.* :- Provides interfaces and classes for dealing with different types of events fired by AWT
components. See the java.awt.AWTEvent class for details on the AWT event model. Events are fired by event
sources. An event listener registers with an event source to receive notifications about the events of a particular
type. This package defines events and event listeners, as well as event listener adapters, which are convenience
classes to make easier the process of writing event listeners
• import javax.awt.* :- Contains all of the classes for creating user interfaces and for painting graphics and
images.
2) Inbuilt Function: -
Math.random():- The java.lang.Math.random() method returns a pseudorandom double type number greater
than or equal to 0.0 and less than 1.0. . When this
method is first called, it creates a single new pseudorandom-number generator,exactly as if by the expression
new java.util.Random.
5.0 Actual Methodology Followed
We develop a project on Guess the number Game under the subject Advance JAVA Programming. We make
this project for user entertainment purpose. We start the program code with the used of import javax.swing.*;
import javax.swing.plaf.ButtonUI; import java.awt.*; import java.awt.event.*; this java package. Also, we get
the used from Math.random() function in our Guess the number Game program. We used button listner for the
click events of buttons in our program for getting the output. We used ImageIcon() for inserting a image in our
UI For some condition expressions we used if else statement in our program. This game is a single game, in this
Game only 1 player can play this game.
11 | P a g e
Code:
12 | P a g e
13 | P a g e
14 | P a g e
Output:
Fig.1
Fig 2. : Message showing that your guess is high
15 | P a g e
Fig 3. :Message showing that your guess is low
Fig 4. : Message showing that guess is correct
16 | P a g e
Fig 5. :Number generated from computer after click on give up
17 | P a g e
6.0 Actual Resources Used:
Name of resources
Sr. No Specifications Qty Remarks
required
1 Computer System with Windows 11 pro 1 ……
specification professional 64 bit
2 Software Microsoft office 2021 1 ……
3 Any other resources used Google chrome, 1 ……
Brave
4 Visual Studio Version 1.73.1 1 ……
7.0 Skill Developed / learning outcomes of this Micro-Project:
● Analyzing the problem
● Problem solving approach
● Planning
● Design skill
● Logical skill
● Programming
● Testing and Troubleshooting
● Presentation
● Report writing
8.0 Applications of this Micro Project:
This project can be used for entertainment purpose.
18