Java MP
Java MP
MicroProject on
Cricket Scoring System
Annexure II
A Micro-Project Report On
“Cricket Scoring System”
Submitted In partial fulfilment of the the
diploma in
Computer Engineering
UNDER GUIDENCE OF MRS. Megha Dhotre
Department of
Computer Engineering
Submitted by:
Name of the Student
Om gaikwad
Rohit Mhatre
Laksh Gavle
Hrushikesh Tarmale
TABLE OF CONTENTS
Sr. No. Topics Page No.
1 Rationale 11
2 Aim / Benefits of Micro-Project. 11
3 Course Outcomes Addressed. 11
4 Literature review 11
5 Actual Methodology followed 12
6 Actual resources used 12
7 Outputs of the Micro-Project 13 to 22
8 Skill Developed through this Project 22
9 Applications of the Micro-Project 23
10 Evaluation Sheet 24 to 27
1.0 RATIONALE:
Java programming provides a powerful, platform independent toolset for building
robust, secure, and scalable applications. It excels in enterprise-level development, web
applications, Android development, and big data processing. Its rich standard library, object
oriented approach, and multi-threading capabilities make it a versatile choice with a wide
range of job opportunities in the industry.
class Player {
String name;
int runs;
int wickets;
boolean isOut;
class Team {
String name;
Player[] players;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// Initialize variables
int ballsRemainingTeam1;
int ballsRemainingTeam2;
int totalBalls;
Team currentTeam;
// Start match
while (ballsRemainingTeam1 > 0 || ballsRemainingTeam2 > 0) {
System.out.println("Enter your choice: ");
System.out.println("1. Add run to player");
System.out.println("2. Add wicket taken by bowler");
System.out.println("3. Print Scorecard");
System.out.println("4. Balls remaining");
System.out.println("5. Second team bats");
System.out.println("6. End Match");
System.out.print("Enter your choice: ");
int choice = scanner.nextInt();
switch (choice) {
case 1:
// Add run to player
System.out.print("Enter player name: ");
String playerName = scanner.next();
System.out.print("Enter runs scored: ");
int runsScored = scanner.nextInt();
addRunToPlayer(currentTeam, playerName,
runsScored);
if (currentTeam == team1) {
ballsRemainingTeam1--;
} else {
ballsRemainingTeam2--;
}
break;
case 2:
// Add wicket taken by bowler
System.out.print("Enter bowler name: ");
String bowlerName = scanner.next();
System.out.print("Enter batsman name: ");
String batsmanName = scanner.next();
addWicketTaken(currentTeam, bowlerName,
batsmanName);
if (currentTeam == team1) {
ballsRemainingTeam1--;
} else {
ballsRemainingTeam2--;
}
break;
case 3:
// Print scorecard
printScorecard(team1);
printScorecard(team2);
break;
case 4:
// Print balls remaining
System.out.println("Team 1 Balls remaining: " +
ballsRemainingTeam1);
System.out.println("Team 2 Balls remaining: " +
ballsRemainingTeam2);
break;
case 5:
// Second team bats
currentTeam = (currentTeam == team1) ? team2 :
team1;
ballsRemainingTeam1 = (currentTeam == team1) ? 0 :
ballsRemainingTeam1;
ballsRemainingTeam2 = (currentTeam == team2) ? 0 :
ballsRemainingTeam2;
break;
case 6:
// End match
ballsRemainingTeam1 = 0;
ballsRemainingTeam2 = 0;
break;
default:
System.out.println("Invalid choice!");
}
}
// Print final scorecard
System.out.println("Final Scorecard:");
printScorecard(team1);
printScorecard(team2);
// Close scanner
scanner.close();
}
Output-
8.0 SKILLS DEVELOPED/LEARNING OUTCOME OF THIS
MICROPROJECT:
1. Critical Thinking: The project enhances the ability to analyze and evaluate complex
cricket match scenarios to ensure accurate scoring.
2. Data Management: It develops skills in managing and organizing cricket match data
effectively.
3. Decision Making: Every aspect of the scoring system involves making decisions to
correctly apply cricket rules.
4. Concentration: Requires continuous focus on the match to update scores and player
statistics promptly.
5. Memory Skills: Improves the ability to remember player performances and match details
for scoring accuracy.
6. Teamwork: Encourages collaborative efforts in developing and maintaining the scoring
system.
7. Resilience: Teaches the importance of overcoming challenges and errors during the
development process.
8. Strategic Thinking: Fosters an interest in creating strategic solutions for real-world
applications like cricket scoring.
9.0 APPLICATION OF THESE MICRO-PROJECT:
1. Education: Teaches Java and cricket rules.
2. Teaching Programming: Demonstrates core Java concepts.
3. AI and Machine Learning: Trains models for match predictions.
4. Psychological Studies: Analyzes player performance under pressure.
5. Client Review: Showcases proof of concept for clients.
6. Entertainment and Mobile Apps: Extends to mobile apps for live scores.
7. Board Games and Puzzles: Adapts for cricket-based board games.
8. Assistive Technology: Helps visually impaired individuals follow the game.
9. Decision-Making and Conflict Resolution: Assists umpires in decision-making.
10. Therapeutic Interventions: Adds competition to therapeutic cricket games.
Annexure IV
Evaluation Sheet for the Micro Project
NAME OF STUDENT: Tanishq Gurunath Pote.
ROLL NO: 60.
NAME OF PROGRAMME: Computer Engineering. SEMESTER: FOURTH.
COURSE TITLE: Java Programming (JPR).
COURSE CODE: 22412
TITLE OF THE MICRO PROJECT: Cricket Scoring System.
COURSE OUTCOMES ACHIEVED:
1. We get to know more detailed information about Core Java.
2. To be able to develop programs using Object Oriented methodology in Java.
(A) Process and Product Assessment (convert above total marks out of 6 Marks)
1 Relevance to the
course
2 Literature
Review/information
collection
3 Completion of the
Target as per project
proposal
(A) Process and Product Assessment (convert above total marks out of 6 Marks)
1 Relevance to the
course
2 Literature
Review/information
collection
3 Completion of the
Target as per project
proposal
(A) Process and Product Assessment (convert above total marks out of 6 Marks)
1 Relevance to the
course
2 Literature
Review/information
collection
3 Completion of the
Target as per project
proposal
Signature:
Evaluation Sheet for the Micro Project
NAME OF STUDENT: Sham Gulab Pawar.
ROLL NO: 69.
NAME OF PROGRAMME: Computer Engineering. SEMESTER:FOURTH.
COURSE TITLE: Java Programming (JPR).
COURSE CODE: 22412
TITLE OF THE MICRO PROJECT: Cricket Scoring System.
COURSE OUTCOMES ACHIEVED:
1. We get to know more detailed information about Core Java.
2. To be able to develop programs using Object Oriented methodology in Java.
(A) Process and Product Assessment (convert above total marks out of 6 Marks)
1 Relevance to the
course
2 Literature
Review/information
collection
3 Completion of the
Target as per project
proposal