0% found this document useful (0 votes)
6 views6 pages

Java Projects for Dussehra Holiday

Uploaded by

kalacreations69
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)
6 views6 pages

Java Projects for Dussehra Holiday

Uploaded by

kalacreations69
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

🎯 Dussehra Holiday Java Project Work (100 Marks)

Project 1: Student Report Card Generator

 Input: Student’s name, roll number, marks in 5 subjects.


 Calculate: total, percentage, and grade.
 Display neat formatted report card.

Why it’s good:


Students can write many pages (introduction of project, algorithm, flowchart, program, outputs
for different marks, conclusion).

Project 2: Simple Calculator

 Input: Two numbers.


 Perform: Addition, Subtraction, Multiplication, Division.
 Display results neatly.

Why it’s good:


They can write step-by-step for each operation, dry runs with different numbers, etc.

Project 3: Railway Ticket Billing System

 Input: Passenger name, age, starting place, destination, ticket price.


 Add GST (say 5%).
 Display final ticket bill with proper format.

Why it’s good:


They can include explanation of ticket system, calculation steps, multiple sample outputs.

Project 4: Simple Banking System

 Input: Account holder’s name, account number, balance.


 Deposit or Withdraw amount.
 Show updated balance.

Why it’s good:


Covers real-life application; students can write flowchart, algorithm, multiple dry runs.
Project 5: Area and Perimeter Calculator

 Input: Dimensions of shapes (circle, square, rectangle, triangle).


 Display area & perimeter of each shape.

Why it’s good:


Multiple shapes → students can write separate dry runs & outputs → more pages.

✍️ Structure for 10–15 Pages


Each project can be written in this order:

1. Title Page – Project Name, Student Name, Class, Roll Number.


2. Index – sections included.
3. Aim/Objective – what the project does.
4. Problem Statement – explanation in simple words.
5. Algorithm – step by step method.
6. Flowchart – simple diagrams.
7. Source Code – Java program.
8. Sample Input/Output (2–3 examples) – write screenshots or tables.
9. Dry Run (trace table) – variables and calculations step-by-step.
10. Conclusion – what they learned from the project.

👉 This way, even a simple 15–20 line Java program becomes a 10–15 page project report.

📘 Model Project Report


Title: Student Report Card Generator
Subject: Java Programming (Scanner Class)
Class: IX
Student Name: ______________________
Roll No.: __________________________

Page 1: Title Page

(Decorative, with project title, student details, teacher’s signature space, etc.)
Page 2: Index

1. Aim / Objective
2. Problem Statement
3. Algorithm
4. Flowchart
5. Source Code
6. Sample Input / Output
7. Dry Run (Trace Table)
8. Conclusion

Page 3: Aim / Objective

Aim:
To write a Java program using the Scanner class to input a student’s name, roll number, and
marks in 5 subjects, then calculate the total marks, percentage, and grade.

Objective:

 Practice the use of Scanner class for input.


 Apply arithmetic operators for calculation.
 Format output in a neat report card style.

Page 4: Problem Statement

Schools prepare report cards based on marks scored by students. The total marks, percentage,
and grade are calculated.
This project simulates the same using Java. The program will:

1. Input student details (name, roll number).


2. Input marks of 5 subjects.
3. Calculate total and percentage.
4. Assign grade based on percentage.
5. Display a formatted report card.

Page 5: Algorithm

1. Start
2. Create Scanner object
3. Input student’s name and roll number
4. Input marks in 5 subjects
5. Calculate total = sum of marks
6. Calculate percentage = total / 5
7. If percentage ≥ 90 → Grade A
Else if percentage ≥ 75 → Grade B
Else if percentage ≥ 50 → Grade C
Else → Grade D
8. Display report card with all details
9. Stop

Page 6: Flowchart

(You can draw boxes with arrows – I’ll describe so students can copy by hand)

 Start → Input Details → Input Marks → Calculate Total → Calculate Percentage →


Decide Grade → Print Report Card → End

Page 7–8: Source Code


import [Link];

public class ReportCard {


public static void main(String[] args) {
Scanner sc = new Scanner([Link]);

[Link]("Enter Student Name: ");


String name = [Link]();

[Link]("Enter Roll Number: ");


int roll = [Link]();

int m1, m2, m3, m4, m5;


[Link]("Enter marks in Subject 1: ");
m1 = [Link]();
[Link]("Enter marks in Subject 2: ");
m2 = [Link]();
[Link]("Enter marks in Subject 3: ");
m3 = [Link]();
[Link]("Enter marks in Subject 4: ");
m4 = [Link]();
[Link]("Enter marks in Subject 5: ");
m5 = [Link]();

int total = m1 + m2 + m3 + m4 + m5;


double percentage = total / 5.0;
String grade;
if (percentage >= 90)
grade = "A";
else if (percentage >= 75)
grade = "B";
else if (percentage >= 50)
grade = "C";
else
grade = "D";

[Link]("\n----- REPORT CARD -----");


[Link]("Name: " + name);
[Link]("Roll No: " + roll);
[Link]("Total Marks: " + total);
[Link]("Percentage: " + percentage + "%");
[Link]("Grade: " + grade);
}
}

Page 9: Sample Input / Output

Input:

Enter Student Name: Divya


Enter Roll Number: 12
Enter marks in Subject 1: 78
Enter marks in Subject 2: 85
Enter marks in Subject 3: 91
Enter marks in Subject 4: 66
Enter marks in Subject 5: 80

Output:

----- REPORT CARD -----


Name: Divya
Roll No: 12
Total Marks: 400
Percentage: 80.0%
Grade: B

Page 10–11: Dry Run (Trace Table Example)


Input m1 m2 m3 m4 m5 Total Percentage Grade

78,85,91,66,80 78 85 91 66 80 400 80.0 B

Page 12: Conclusion

This project helped us to:


 Understand the use of Scanner class for input.
 Practice arithmetic operations in Java.
 Learn how to calculate percentage and grade.
 Format the output in a report card style.

Thus, a simple real-life application (report card) was successfully created using Java basics.

You might also like