Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
37 views

advanced java micro

No Description

Uploaded by

siddhijain522
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

advanced java micro

No Description

Uploaded by

siddhijain522
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Teacher Evaluation Sheet

Name of Student: Chordiya Siddhi Rajesh


Enrolment No: 2200790138
Name of Program: Computer Technology Semester:- V
Course Title: Advanced Java Programming Code:22517
Title of the Micro Project: Railway Reservation System

Course Outcomes Achieved:-


a) Handle events of AWT and Swings components.
b) Develop Java Programs using networking concepts.
c) Develop programs using database.

Evaluation as per Suggested Rubric for Assessment of Micro-Project:

Sr.
No. Characteristic to be Poor Average Good Excellent
assessed (Marks 1- (Marks 4- (Marks 6 - 8) (Marks 9-
3) 5) 10)
(A) Process and Product Assesssment (Convert above total marks out of 6 marks)
1 Relevance to the Course
Literature Survey /
2 Information
Collection
Completion of the Target as
3 per project proposal
Analysis of data and
4 Representation
5 Quality of Prototype / Model
6 Report Preparation
(B) Individual Presentation / Viva (Convert above total marks out of 4 marks)
8 Presentation
9 Viva
Micro – Project Evaluation Sheet:

Process Assessment Product Assessment


Part Project Part Individual Total
A– Methodolog B – Project Presentation / Marks
Name of Student project y (2 marks) Report / Viva (4 10
Proposal Working marks)
(2 marks) Model(2 marks)
Chordiya Siddhi Rajesh
Comments / Suggestions about team work / leadership / inter – personal communication
:Good team co-ordination and got many new things to learn

Any Other Comment :None

Name and designation of the faculty Member: Ms.A.S.Chordiya signature

1
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION

SHRI H. H. J. B POLYTECHNIC,
CHANDWAD-423101 (Nashik)

MICRO PROJECT
Academic year 2024-25

TITLE OF PROJECT
Railway Reservation System

Program: Computer Technology Program Code:CM

Course: AdvancedJavaProgramming Course code: 22517

2
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION

Sr.No. Name of Student Roll No Enrollment No Seat No


1. Chordiya Siddhi Rajesh 17 2200790138 390741

CERTIFICATE
This is to certify Chordiya Siddhi Rajeshof 5th Semester of Diploma in Computer
Technology of Institute, SHHJB POLYTECHNIC, CHANDWAD (Code: 0079) has
completed the Micro-Project satisfactorily in Subject Advanced Java Programming for the
academic year 2024- 2025 as prescribed in the curriculum.

Place: CHANDWAD

Date: / /2024

Subject Teacher Head of the Department Principal


(Ms.A.S.Chordiya) (Mr.P.R.Sali) (Dr. V.A.Wankhede)

3
INDEX

SR_NO. CONTENT PAGE NO.

Part A

1.0 Brief Introduction 5

2.0 Aim of Micro Project 5

3.0 Action Plan 5

4.0 Resources Required 5

Part B

1.0 Brief Description 6

2.0 Aim of Micro Project 6

3.0 Course Outcome Integrated 6

4.0 Actual Procedure Followed 6

5.0 Actual Resource Used 6

6.0 Outputs of the Micro-projects 8-15

7.0 Skill Developed 16

8.0 Conclusion of this Microproject 16

4
PART A-Plan

Title of micro-project: Railway Reservation System

1.0 Brief Description: An online class test is an assessment conducted over the internet, typically as part of a
course or educational program. It can take various forms, such as multiple-choice questions, short answers, or
essays, and is designed to evaluate students' understanding of the material covered in the course.

2.0 Aim/Benefits of the MicroProject:


The primary aim of a Railway Reservation System micro-project is to design, develop, and implement an
automated system that facilitates the efficient booking of railway tickets, handling of reservations, and the
management of train schedules. The project aims to provide a seamless and user-friendly platform for passengers
to book tickets, check availability, and manage their journeys without the need for manual intervention.
3.0 Course Outcomes Addressed-
1. Develop programs using GUI Framework(AWT and Swing).
2. Handle events of AWT and Swings components.
3. Develop programs to handle events in Java programming.
4. Develop Java Programs using networking concepts.
5. Develop programs using database.
6. Develop programs using Servlets.

4.0 Proposed Methodology-


• To understand the full scope of the project and define user needs, functionalities, and constraints.
• To design the architecture of the system, including both the frontend and backend components.
• To implement the actual system based on the design and requirements.

5.0 Action Plan:


Planned Start Planned Finish
Sr no. Details of activity
Date Date
1. Finalization of topic
2. Preparation of Abstract
3. Collection of data
4. Preparation of concept
5. Seminar / Presentation
6. Submission of Micro Project

Resources Required:
Sr.No Name of Resource/Material Specification Quantity Remarks
1. Computer (Desktop/Laptop) i3,RAM 2GB 1
2. Microsoft office word 2010 1
3. Books
4. Websites
5. Softwares Notepad,browser 1

5
PART B-Plan

Title of micro-project: Railway Rservation System

1.0 Brief Description: Railway Reservation is an automated platform designed to facilitate the booking,
cancellation, and management of railway tickets. It aims to simplify the process for passengers by providing an
online system where users can easily search for trains, check seat availability, book tickets, and make payments
securely. The system also includes an administrative panel for railway authorities to manage train schedules,
reservations, and user data.

2.0 Aims/Benefits of Micro Project:


The primary aim of a Railway Reservation System micro-project is to design, develop, and implement an
automated system that facilitates the efficient booking of railway tickets, handling of reservations, and the
management of train schedules. The project aims to provide a seamless and user-friendly platform for passengers
to book tickets, check availability, and manage their journeys without the need for manual intervention.

3.0 Course Outcomes Achieved:


a.Develop programs using GUI Framework (AWT and Swing).
b .Handle events of AWT and Swings components.
c . programs to handle events in Java Programming.their journeys without the need for manual intervention.

4.0 Actual Methodology/Procedure Followed:


▪ Planning Phase:
▪ Identify requirements: Understand user needs, railway operations, and reservation
processes.
▪ Define project scope: Determine system boundaries, functionalities, and timelines.
▪ Feasibility study: Assess technical, financial, and operational viability.
▪ Analysis Phase:
▪ Gather requirements: Collect data on passenger reservation processes, railway
schedules, and fare structures.
▪ Define system architecture: Determine hardware, software, and network
infrastructure.

5.0 Actual Resources Used:


Sr.No Name of Resource/Material Specification Quantity Remarks
1. Computer (Desktop/Laptop) i3,RAM 2GB 1
2. Microsoft office word 2010 1
3. Books
4. Websites
5. Softwares Notepad,browser 1

6
7
PROGRAM:

import java.awt.*;
import
java.awt.event.*;
import java.util.*;

public class RailwayReservationAWT extends Frame implements ActionListener {

// Train data setup


private List<Train> trains;
private TextField sourceField, destinationField, trainNumberField;
private TextArea outputArea;

public RailwayReservationAWT() {
// Predefined train data
trains = new
ArrayList<>();
trains.add(new Train("101", "Rajdhani Express", "Delhi", "Mumbai", "10:00 AM", "8:00
PM", 100));
trains.add(new Train("102", "Shatabdi Express", "Delhi", "Chennai", "12:00 PM",
"10:00 PM", 150));
trains.add(new Train("103", "Duronto Express", "Kolkata", "Delhi", "2:00 PM", "12:00
AM", 200));

// Set up Frame layout


setLayout(new
FlowLayout());

// Create GUI Components


Label sourceLabel = new Label("Source:");
sourceField = new TextField(20);
Label destinationLabel = new Label("Destination:");
destinationField = new TextField(20);
Button searchButton = new Button("Search
Trains"); Button bookButton = new Button("Book
Ticket"); Button cancelButton = new
Button("Cancel Ticket"); trainNumberField = new
TextField(20);
outputArea = new TextArea("", 5, 50, TextArea.SCROLLBARS_VERTICAL_ONLY);

// Add components to
Frame add(sourceLabel);
add(sourceField);
add(destinationLabel);
add(destinationField);
add(searchButton);
add(new Label("Train Number for Booking/Canceling:"));
add(trainNumberField); 8
add(bookButton);
add(cancelButton
);
add(outputArea);

// Set the properties of Frame


setTitle("Railway Reservation System");
setSize(500, 400);
setVisible(true);

// Add action listeners


searchButton.addActionListener(this);
bookButton.addActionListener(this);
cancelButton.addActionListener(this);

// Close window gracefully


addWindowListener(new
WindowAdapter() {
public void windowClosing(WindowEvent we) {
System.exit(0);
}
});
}

@Override
public void actionPerformed(ActionEvent e)
{ Button sourceButton = (Button)
e.getSource();

if (sourceButton.getLabel().equals("Search
Trains")) { String source =
sourceField.getText().trim();
String destination =
destinationField.getText().trim(); Train
foundTrain = searchTrain(source, destination); if
(foundTrain != null) {
outputArea.setText(foundTrain.toString());
} else {
outputArea.setText("No trains found for the given route.");
}
} else if (sourceButton.getLabel().equals("Book
Ticket")) { String trainNumber =
trainNumberField.getText().trim(); boolean success
= bookTicketForTrain(trainNumber);
if (success) {
outputArea.setText("Ticket booked successfully!");
} else {
outputArea.setText("No available seats for this train.");
}
} else if (sourceButton.getLabel().equals("Cancel
Ticket")) { String trainNumber =
9
trainNumberField.getText().trim();
cancelTicketForTrain(trainNumber);
}
}

private Train searchTrain(String source, String


destination) { for (Train train : trains) {

if (train.getSource().equalsIgnoreCase(source) &&
train.getDestination().equalsIgnoreCase(destination)) {
return train;
}
}
return null;
}

private boolean bookTicketForTrain(String trainNumber)


{ for (Train train : trains) {
if (train.getTrainNumber().equals(trainNumber))
{ return train.bookTicket();
}
}
return false;
}

private void cancelTicketForTrain(String


trainNumber) { for (Train train : trains) {
if (train.getTrainNumber().equals(trainNumber)) {
train.cancelTicket();
outputArea.setText("Ticket cancelled
successfully."); return;
}
}
outputArea.setText("Invalid train number.");
}

public static void main(String[] args) {


new RailwayReservationAWT();
}

// Train Class Definition (same as


before) static class Train {
private String
trainNumber; private
String trainName; private
String source; private
String destination;
private String
departureTime; private
String arrivalTime; private
int totalSeats;
10
private int availableSeats;

public Train(String trainNumber, String trainName, String source, String destination,


String departureTime, String arrivalTime, int totalSeats) {
this.trainNumber =
trainNumber; this.trainName =
trainName; this.source =
source; this.destination =
destination;
this.departureTime = departureTime; this.arrivalTime =
arrivalTime

this.totalSeats = totalSeats;
this.availableSeats = totalSeats;
}

public String getTrainNumber() {


return trainNumber;
}

public String getTrainName() {


return trainName;
}

public String getSource()


{ return source;
}

public String getDestination() {


return destination;
}

public String getDepartureTime() {


return departureTime;
}

public String getArrivalTime() {


return arrivalTime;
}

public int getTotalSeats()


{ return totalSeats;
}

public int getAvailableSeats() {


return availableSeats;
}

public boolean bookTicket()


{ if (availableSeats > 0) {
availableSeats--;
11
return true;
}
return false;
}

public void cancelTicket() {


if (availableSeats < totalSeats) {
availableSeats++;
}
}

@Override
public String toString() {
return String.format("Train No: %s, Train Name: %s, Source: %s, Destination: %s,
Departure: %s, Arrival: %s, Available Seats: %d",
trainNumber, trainName, source, destination, departureTime, arrivalTime,
availableSeats);
}
}
}

12
13
14
OUTPUT OF THE PROGRAM:

15
16
Skill Developed:
1. Understanding complex problems (e.g., seat allocation, payment processing) and designing logical
solutions.

2. Developing skills in designing system architecture (e.g., client-server, RESTful APIs).

3. Database design and management using Entity-Relationship diagrams and normalization


techniques.

8.0 CONCLUSION:
This methodology is designed to be iterative, where after each phase, feedback from
stakeholders and users will be integrated into the development process to continuously
improve the Railway Reservation System. The project will follow a waterfall approach with
room for improvements during testing and maintenance, or an agile approach where iterative
development is more suitable, depending on team preferences.

17

You might also like