Вы находитесь на странице: 1из 11

K.L.E.

Society’s
BACHELOR OF COMPUTER APPLICATION
P C Jabin Science College Campus, HUBBALLI
Autonomous, CPE Phase III
NAAC Re-Accredited at A Level with 3.37 CGPA

2019 - 2020

Mini Project using

JAVA

Report On

PROJECT TITLE
BUS RESERVATION SYSTEM DISPLAY SEATS FOR
TWO OR MORE BUS

Submitted By
Akshata.Tambragundi
Reg No : 217052
K.L.E.Society’s
BACHELOR OF COMPUTER APPLICATION
P C Jabin Science College Campus, HUBBALLI
Autonomous, CPE Phase III
NAAC Re-Accredited at A Level with 3.37 CGPA
K.L.E.Society’s
BACHELOR OF COMPUTER APPLICATION
P C Jabin Science College Campus, HUBBALLI
Autonomous, CPE Phase III
NAAC Re-Accredited at A Level with 3.37 CGPA

CERTIFICATE

This is to certify that Mr./Ms.______________________ - Reg No_______________

has satisfactorily completed the mini project using Java

titled ________________________________________________________

prescribed by the P.C.Jabin Science College, Hubballi for the BCA ___ semester in

the college during the year 2019-20.

__________________ ______________
Staff in-charge Principal

Examiners

1.

2.
CONTENTS

Slno Topic Page


No
1 Introduction
2 Literature Survey
3 System Requirements
4 Methodology And Stages
5 Software Development Steps
6 Software Code
7 Results
8 Conclusion
Bibliography
Introduction:
Bus Ticket Reservation System is a software application to book bus tickets . This
project provides an option for customers to book their tickets ,this project “Bus
Reservation System”, is developed in java . which mainly focuses on basic operations
like searching bus, adding customer details , and display the seat layout .

Literature Survey:

System Requirement:

Hardware Requirement

Processor : Intel Core Duo 2.0 GHz or more


RAM : 1 GB or More
Hard disk : 80GB or more
Monitor : 15” CRT, or LCD monitor
Keyboard : Normal or Multimedia
Mouse : Compatible mouse

Software Requirement

Operation System : Windows XP with server pack 3


Or Windows 7
Browser : Internet Explorer or Google Crome

Software Code
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;
import java.io.*;
import fileop.Dup_linedel;
class br

{
Project Title

String[] seats=new String[60];


String[] type=new String[3];
int bus;
String CustomerName;
mr()
{
type[0]="**RED BUS**";

}
public void plan()throws IOException
{
String bus="";
Scanner sc=new Scanner(System.in);
Date objDate = new Date();
Dup_linedel dl=new Dup_linedel();
System.out.println("--------------------------------------------------------------");
System.out.println();
System.out.println(" WELCOME TO RED BUS\n");
System.out.println();
System.out.println("--------------------------------******---------------------");
System.out.println();
System.out.print(" ENTER YOUR NAME :");
String CustomerName = sc.nextLine();
System.out.println();
System.out.println("--------------------------------******-----------------------");
System.out.println();
System.out.print(" ENTER YOUR MOBILE NUMBER :");
String CustomerNumber = sc.nextLine();
System.out.println();
System.out.println("--------------------------------******-----------------------");
while(true)
{
System.out.print(" ENTER BUS NUMBER : ");
bus=sc.nextLine();
System.out.println();

if(Integer.parseInt(bus)>4)
{
System.out.println(" ENTER NUMBER BETWEEN 1-4");
System.out.println();
continue;
}
break;
}
if(dl.isduplicate(bus,"main.txt",1))
{
String tline=dl.linedel("E:/52/fileop/","main.txt",bus,1);
Scanner data=new Scanner(tline);
data.next();
for(int i=0;i<40;i++)
{
seats[i]=data.next();
}
}

KLES’s BCA, Hubballi 2


Project Title

else
{
for(int i=0;i<40;i++)
seats[i]=(i+1)+"";
}
System.out.print("--------------------------------------------------------\n");
System.out.println();
System.out.println(" BUS SEATING PLAN\n");
System.out.println();

int x,y,m=0,n=0;
System.out.println("-----------------------------------------------------------------\n");

System.out.print("_____________________________________________");

for(int i=0;i<40;i++)
{

if(i%5==0)
for (x = 1; x<= n; x++)
{
for (y = 1; y <= m; y++)
{
if (x == 1 || x == n || y == 1 || y == m)
System.out.print("|");
else
System.out.print("|");
}
System.out.println();

}
if(i%5==0)
System.out.println("\n");

System.out.print("\t"+"|"+seats[i]+"|\t");
System.out.print("|");

System.out.println("\n__________________________________________\n"
);

System.out.println("\n====================================\n");

System.out.print(" WHICH SEAT WOULD YOU LIKE TO BOOK? ");


int sno=sc.nextInt()-1;
System.out.println("\n==========================================\n");
if(sno<41)
{
if(seats[sno].equals("*"))
{
System.out.print("SEAT NOT AVAILABLE");
}
else
{

KLES’s BCA, Hubballi 3


Project Title

System.out.print(" SEAT " +(sno+1)+ " IS SUCCESSFULLY BOOKED . ON");


seats[sno]="*";
System.out.println(objDate);
String strDateFormat = "hh:mm:ss a dd-MMM-yyyy";
SimpleDateFormat objSDF = new SimpleDateFormat(strDateFormat);
System.out.println(objSDF.format(objDate));
}

System.out.println("\n====================================\n");
System.out.println();
System.out.println("\n=======***** THANYOU *******========\n");
System.out.println();
System.out.println("\n====================================\n");
System.out.println();
System.out.println("\n======*****HAPPYJOURNEY******======\n");
System.out.println();

System.out.println("\n===================================\n");
}

FileWriter fw=new FileWriter("Main.txt",true);


BufferedWriter bf=new BufferedWriter(fw);
bf.write(bus+" ");
for(int i=0;i<60;i++)
bf.write(seats[i]+" ");
bf.newLine();
bf.close();
}
}
class br
{
public static void main(String[] args)throws IOException
{
System.out.println("==================================================");
System.out.println("+ KLE'S BCA HUBBALLI +");
System.out.println("+ P. C. Jabin Science College Campus, Vidyanagar Hubballi-58 +");
System.out.println("+ MINI PROJECT +");
System.out.println("+ +");
System.out.println("+ Topic: BUS RESERVATION DEMO DISPLAY SEATS +");
System.out.println("+ +");
System.out.println("+ Submitted By:AKSHATA.TAMBRAGUNDI +");
System.out.println("+ Roll no:217052 +");
System.out.println("+ +")
System.out.println("+ Submitted to : Mr. Sunil Vernekar +");
System.out.println("================================================== ");

System.out.println("
=================================================================”);
Scanner sc=new Scanner(System.in);
br mi=new br();
String yn;
do
{
mi.plan();
System.out.print(" WOULD YOU LIKE TO MAKE NEXT BOOKING?");

KLES’s BCA, Hubballi 4


Project Title

yn=sc.nextLine();
}while(yn.equals("y")||yn.equals("Y"));
}
}

Results

Figure 1 Name of the Screen Shot

KLES’s BCA, Hubballi 5


Project Title

Figure 2 Name of the Screen Shot

Conclusion
An important research problem is the selection of a relevant subset of test loss the
thoroughness of regression testing An important research problem is the selection of a
relevant subset of test cases from the initial test suite that would minimize both the
regression testing time and effort without loss the thoroughness of regression testing

Bibliography
[1] G. Eason, B. Noble, and I.N. Sneddon, “On certain integrals of Lipschitz-
Hankel type l functions,” Phil. Trans. Roy. Soc. London, vol. A247, pp. 529-
551, April 1955. (references)

KLES’s BCA, Hubballi 6


Project Title

[2] J. Clerk Maxwell, A Treatise on, 3rd ed., vol. 2. Oxford: Clarendon, 1892,
pp.68-73.
[3] I.S. Jacobs and C.P. Bean, “Fine, vol. III, G.T. Rado and H. Suhl, Eds. New
York: Academic, 1963, pp. 271-350.
[4] K. Elissa, “Title of paper if known,” unpublished.
[5] R. Nicole, “Title ofalized,” J. Name Stand. Abbrev., in press.

KLES’s BCA, Hubballi 7

Вам также может понравиться