0% found this document useful (0 votes)
56 views27 pages

G V Acharya Polytechnic, Shelu: Report On

The document is a report on a Java programming project completed by a student at G V ACHARYA POLYTECHNIC in Shelu, Maharashtra, India. It describes a Java program that implements a jumbled word game, where students must unscramble randomly shuffled letters to guess words within 3 attempts. The report includes the program code, sample output, and an analysis of the game's effectiveness for improving language skills through engagement and problem solving.

Uploaded by

Kunal Mhatre
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views27 pages

G V Acharya Polytechnic, Shelu: Report On

The document is a report on a Java programming project completed by a student at G V ACHARYA POLYTECHNIC in Shelu, Maharashtra, India. It describes a Java program that implements a jumbled word game, where students must unscramble randomly shuffled letters to guess words within 3 attempts. The report includes the program code, sample output, and an analysis of the game's effectiveness for improving language skills through engagement and problem solving.

Uploaded by

Kunal Mhatre
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

G V ACHARYA POLYTECHNIC,

SHELU
Acharya Technical Education Campus, Raigad, Shelu, Maharashtra 410201

RREPORT ON

SUBJECT: JAVA PROGRAMMING

SUBJECT CODE: 22412

PROJECT GUIDE: PURVA SHINDE

ACADEMIC YEAR: 2022-23

MAHARASHTRA STATE BOARD OF TECHNICAL


EDUCATION

1
MAHARASHTRA STATE BOARD OF
TECHNICAL EDUCATION

This is to certify that Mr./Mrs.


Of semester – IV of diploma in COMPUTER ENGINEERING of institute, G V
ACHARAYA POLYTECHNIC, Shelu has completed the Micro project
satisfactorily in subject – JAVA PROGRAMMING for the academic year 2022-
23 as prescribed in the curriculum.

Place:
Date:
ENROLLMENT NO.:

SUBJECT TEACHER HEAD OF THE DEPARTMENT PRINCIPAL

2
MAHARASHTRA STATE BOARD OF
TECHNICAL EDUCATION

This is to certify that Mr./Mrs.


Of semester – IV of diploma in COMPUTER ENGINEERING of institute, G V
ACHARAYA POLYTECHNIC, Shelu has completed the Micro project
satisfactorily in subject – JAVA PROGRAMMING for the academic year 2022-
23 as prescribed in the curriculum.

Place:
Date:
ENROLLMENT NO.:

SUBJECT TEACHER HEAD OF THE DEPARTMENT PRINCIPAL

3
MAHARASHTRA STATE BOARD OF
TECHNICAL EDUCATION

This is to certify that Mr./Mrs.


Of semester – IV of diploma in COMPUTER ENGINEERING of institute, G V
ACHARAYA POLYTECHNIC, Shelu has completed the Micro project
satisfactorily in subject – JAVA PROGRAMMING for the academic year 2022-
23 as prescribed in the curriculum.

Place:
Date:
ENROLLMENT NO.:

SUBJECT TEACHER HEAD OF THE DEPARTMENT PRINCIPAL

4
MAHARASHTRA STATE BOARD OF
TECHNICAL EDUCATION

This is to certify that Mr./Mrs.


Of semester – IV of diploma in COMPUTER ENGINEERING of institute, G V
ACHARAYA POLYTECHNIC, Shelu has completed the Micro project
satisfactorily in subject – JAVA PROGRAMMING for the academic year 2022-
23 as prescribed in the curriculum.

Place:
Date:
ENROLLMENT NO.:

SUBJECT TEACHER HEAD OF THE DEPARTMENT PRINCIPAL

5
Submitted in partial fulfilment of the requirement of the Diploma of
Computer/IF Engineering.

Group Members

SR.NO NAME OF STUDENT ENROLLMENT


1. Yashraj B. Chaudhari 2111440060
2. Kunal B. Mhatre 2111440069
3. Sahil J. Raut 2111440082
4. Vedanti J. Pashte 2211440160

6
INDEX

Sr.No. Title Page No.


1. Introduction 8
2. Aim 9
3. Literature Review 10
4. Objective / Scope 11
5. Code 12
6. Output 21
7. Analysis 24
8. Limitation 25
9. Conclusion 26
10 Reference 27

7
Introduction

In Jumble word game


1. The computer program randomly picks up a secret word from a
database of words and then shuffles it.
2. The shuffled word is presented to the user and he is asked to guess
the original word.
3. The game ends when the user guess the correct word in 3 attempts.
4. If the user failed to guess the word within 3 attempts the game gets
over.

8
Aim

➢ It helps students to understand the text while reading.


➢ Using jumble letters technique in teaching and learning language is
important especially in junior high school because it will not focuse
on memorizing but remembering and practising.

9
Literature Review
Jumbled or scrambled words are a type of word puzzle where the letters
of a word are mixed up or rearranged, and the goal is to unscramble the
letters to form the correct word. Jumbled word puzzles are often used as
educational tools to improve vocabulary and spelling skills, and they are
also a popular type of brain teaser and recreational activity.

Several studies have investigated the effectiveness of jumbled word


puzzles as a tool for improving language skills. For example, a study by
Karatas and Adiguzel (2014) found that jumbled word puzzles can
improve vocabulary and spelling skills in second language learners.
Similarly, a study by Kara and Aydın (2013) found that jumbled word
puzzles can improve the spelling skills of elementary school students.

In addition to their educational benefits, jumbled word puzzles are also a


popular type of game and recreational activity. A study by Lundqvist
and colleagues (2011) found that playing word games such as jumbled
word puzzles can have a positive effect on cognitive function, including
memory and attention.

Overall, jumbled words are a versatile and popular tool for improving
language skills, as well as a useful tool for research in natural language
processing and computational linguistics.

10
Objective Scope

In an educational context, the objective of jumbled words is to improve


language skills, such as vocabulary and spelling. Jumbled words can be
used as an effective tool to reinforce the correct spelling and
pronunciation of words. It can also help students expand their
vocabulary by exposing them to new words and their meanings.

In a recreational context, the objective of jumbled words is to provide


entertainment and challenge to individuals who enjoy solving puzzles. It
can help in improving cognitive skills such as memory, attention, and
problem-solving abilities.

In the context of natural language processing and computational


linguistics, the objective of jumbled words is to generate test data for
language models and other language processing algorithms. Jumbled
words can be used to test the accuracy and robustness of these models.

Overall, the objective of jumbled words can vary depending on the


context in which they are used. They can serve as an educational tool, a
recreational activity, or a means of generating test data for language
processing models.

11
Code
import java.util.Random;
import java.util.Scanner;

public class Jumbling {

// welcome banner
static void welcomeBanner() {
System.out.println("");
System.out.println("\t
=========================================");
System.out.println("\t| |");
System.out.println("\t| Welcome to Word Jumble!!! |");
System.out.println("\t| Unscramble the letters to form a word |");
System.out.println("\t| |");
System.out.println("\t
=========================================");
}

// replay banner
static void replayBanner() {
System.out.println("");
System.out.println("");

12
System.out.println("\t
=========================================");
System.out.println("\t| |");
System.out.println("\t| Welcome back :] |");
System.out.println("\t| Unscramble the letters to form a word |");
System.out.println("\t| |");
System.out.println("\t
=========================================");
}

// congratulation banner
static void congratulationBanner() {
System.out.println("");
System.out.println("\t
****************************************");
System.out.println("\t| |");
System.out.println("\t| Congratulations, you guessed the word! |");
System.out.println("\t| |");
System.out.println("\t
****************************************");
}

static void wordBanner(String word) {


System.out.println("");

13
System.out.println("\t
=========================================");
System.out.println("\t| |");
System.out.println("\t| The word was: " + word + " |");
System.out.println("\t| |");
System.out.println("\t
=========================================");
}

// our of banner
static void attemptBanner() {
System.out.println("");
System.out.println("\t
_____________________________________");
System.out.println("\t| |");
System.out.println("\t| Sorry, you have run out of attempts |");
System.out.println("\t| |");
System.out.println("\t
_____________________________________");
System.out.println("");
}

// exit banner
static void exitBanner() {

14
System.out.println("");
System.out.println("\t
****************************************");
System.out.println("\t| |");
System.out.println("\t| THANKS FOR PLAYING |");
System.out.println("\t| |");
System.out.println("\t
****************************************");
}

public static String jumble(String word) {


char[] letters = word.toCharArray();
Random rand = new Random();
for (int i = 0; i < letters.length; i++) {
int j = rand.nextInt(letters.length);
char temp = letters[i];
letters[i] = letters[j];
letters[j] = temp;
}
return new String(letters);
}

public static void main(String[] args) {


// data set
15
welcomeBanner();
String[] words = { "computer", "java", "programming", "software",
"algorithm", "motherboard", "harddrive",
"keyboard", "monitor", "printer" };
String jumbled;
int attempts = 7, hint = 3;
Scanner input = new Scanner(System.in);
boolean replay = false, exitFlag = false; // flags
outer :do {
Random rand = new Random();
String word = words[rand.nextInt(words.length)];
jumbled = jumble(word);
if (replay) {
replayBanner();
}
System.out.println("");
System.out.println("\tYou have " + attempts + " attempts to
guess the word");
System.out.println("");
System.out.println("\tThe jumbled word is: " + jumbled);
System.out.println("");
while (attempts > 0) {
System.out.println("");
System.out.print("\tEnter your guess: ");
16
String guess = input.nextLine();

if (guess.equalsIgnoreCase(word)) { // correct guess


congratulationBanner();
break;
} else if (guess.isEmpty() || guess.isBlank()) { // blank guess
System.out.println("");
System.out.println("\tThe guess can't be empty");
} else if (guess.equalsIgnoreCase("exit")) { // exit
exitFlag = true;
break outer;
} else { // incorrect guess
attempts--;
if (attempts > 0) {
System.out.println("");
System.out.println(
"\tIncorrect guess. You have " + attempts + "
attempts and " + hint + " hint remaning");
if ((attempts % 2) != 0 && hint > 0) {
System.out.println("");
System.out.print("\tWould you like a hint? (y/n) ");
String hintResponse = input.nextLine();
if (hintResponse.equalsIgnoreCase("y") ||
hintResponse.equalsIgnoreCase("yes")) {
17
if (hint == 3) {
System.out.println("\tThe first letter of the word
is: " + word.charAt(0));
}
if (hint == 2) {
System.out.println("\tthe 3 letter is " +
word.charAt(2));
}
if (hint == 1) {
System.out.println(
"\tThe last letter of the word is: " +
word.charAt(word.length() - 1));
}
hint--;
}
}
} else {
attemptBanner();
}
}

}
if (!exitFlag) {
wordBanner(word);

18
System.out.print("\n\tdo you want to play again (yes or no): ");
String replayResponse = input.nextLine();
replay = replayResponse.equalsIgnoreCase("y") ||
replayResponse.equalsIgnoreCase("yes");
}

} while (replay);
exitBanner();
input.close();
}
}

/*
* the working of the jumbel method
* Initial array: {'c', 'o', 'm', 'p', 'u', 't', 'e', 'r'}
*
* Iteration 1:
*i=0
*j=6
* {'e', 'o', 'm', 'p', 'u', 't', 'c', 'r'}
*
* Iteration 2:
*i=1

19
*j=4
* {'e', 'u', 'm', 'p', 'o', 't', 'c', 'r'}
*/

20
Output

21
22
23
Analysis

Jumbling words, or word scrambling, is a popular word game that


involves rearranging the letters of a word or phrase to form a new word
or phrase. This activity has been the subject of research, and studies have
shown that solving jumbled words activates different brain regions than
regular word recognition, indicating that it involves a more complex
cognitive process. Additionally, jumbling words can improve working
memory capacity, which is the ability to temporarily hold and manipulate
information in the mind. This can enhance cognitive performance and
may be beneficial for individuals with cognitive impairments such as
dementia. Overall, jumbling words is a fun and engaging activity that has
cognitive benefits and can be used as a tool for cognitive training.

24
Limitation
Limited educational value: While jumbled words can help reinforce
spelling and vocabulary skills, they do not necessarily promote a deeper
understanding of language. For example, solving jumbled words does
not require understanding the meaning of the words, but rather relies on
the ability to recognize letter patterns.

Limited transferability
Limited engagement
Limited applicability
Limited scalability

Overall, while jumbled words can be a useful tool for improving


language skills and providing entertainment, their effectiveness may
depend on the individual and the context in which they are used. It is
important to consider these limitations when using jumbled words as a
learning or recreational activity.

25
Conclusion
Jumbled words are a versatile tool for language improvement,
entertainment, and research, but their effectiveness depends on the
context and goals, and they have some limitations

26
Reference

• www.google.com
• www.javatpoint.com
• www.greeksforgreek.com

27

You might also like