Presentation is loading. Please wait.

Presentation is loading. Please wait.

University Of Karachi Department Of Computer Science

Similar presentations


Presentation on theme: "University Of Karachi Department Of Computer Science"— Presentation transcript:

1 University Of Karachi Department Of Computer Science
RAH BUS SERVICE Group Members: Khawaja Hamza Bin Bashir (43) Khawaja Abeer Wani (45) Ramsha Zaib (112) Course Supervisor : Dr. Humera Tariq & Sir Usman Amjad 3/7/ OOP & DM .

2 Introduction The project is designed so as customer can reserve tickets online and can view customer route from source to destination on a map. In this system the customer can select any bus of his/her choice.

3 Problem statement This project is to extend in travelling, business process and communication. The individual who needs to reserve a tickets must fill all the fields in the reservation form. This system includes • Ticket Reservation. • Group bookings. • Cancel Reservation.

4 Importance The project traverses a lot of areas ranging from business concept to computing field and required to perform several researches to be able to achieve the project objectives. To ease customer’s task whenever they need to Reserve tickets. General customers as well as the company’s staff will be able to use the system effectively. System will be available for 24/7 except when there is a temporary reservation issue.

5 Sample Input

6 SAMPLE OUTPUT

7 SAMPLE OUTPUT

8 CLASS DIAGRAM

9 UML

10 Here we describe about Filing and information storage

11 What is Filing Meant to be here???
A collection of data or information that has a name, called the filename. Almost all information stored in a computer related to a program must be in a file. There are many different types of files: data files, text files, program files, directory files, binary files and so on. Different types of files store different types of information. For example, program files store programs, whereas text files store text.

12 Writing to a File Serializable:
To serialize an object means to convert its state to a byte stream so that the byte stream can be reverted back into a copy of the object. A Java object is serializable if its class or any of its superclasses implements either the java.io.Serializable interface or its subinterface, java.io.Externalizable.  Deserialization: Deserialization is the process of converting the serialized form of an object back into a copy of the object.

13 Objectoutputstream: An ObjectOutputStream writes primitive data types and graphs of Java objects to an OutputStream. The objects can be read (reconstituted) using an ObjectInputStream. ObjectInputStream: Only objects that support the java.io.Serializable or java.io.Externalizable interface can be read from streams. The method readObject is used to read an object from the stream.

14

15 Reading From a File ObjectInputStream:
Only objects that support the java.io.Serializable or java.io.Externalizable interface can be read from streams. The method readObject is used to read an object from the stream.

16

17 PACKAGING

18 login() Fn. Implementation.

19 Attribute Handling Static.
• when we declared a variable Static. it's belong to the class rather than the instant of class. • The static keyword in java is used for memory management mainly. • The static variable gets memory only once in class area at the time of class loading. Private & public. • A public member can be accessed from outside the class • but if you declared your variable as Private it can not accessed outside the class

20

21 Type casting • Type casting is a way to convert a variable from one data type to another data type. • Parsing is used to convert the value of another data type.

22 Constructor and function calling
Constructor in java is a special type of method that is used to initialize the object. Method is used to expose behavior of an object.

23 Method Overloading If a class have multiple methods by same name but different parameters, it is known as Method Overloading. Method overloading increases the readability of the program.

24 Method Overriding If subclass (child class) has the same method as declared in the parent class, it is known as method overriding in java. Method overriding is used to provide specific implementation of a method that is already provided by its super class.

25

26

27 Arrays of Similar Objects
We use arrays list to store and manipulate the group of objects.

28 Inheritance Inheritance in java is a mechanism in which one object acquires all the properties and behaviors of parent object. The extends keyword indicates that you are making a new class that derives from an existing class

29 INTERFACE An interface is a reference type in Java. It is similar to class. It is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface.

30 Exception Handling An exception is a special type of error object that is created when something goes wrong in a program.

31 try-catch block on Filing

32 try-catch block on RemoveBus()FN

33 If-Else Conditions

34 GUI using JavaFx

35 Login and sign up

36 Bus details and Add Remove Fetch Bus

37 Tickets Reservation

38 Ticket Info

39 Customer Ticket Details

40 Admin login

41 Warning or Error Messages

42 Discrete Mathematics Linear Search Algorithm Visualising of google map
Shortest Path Algorithm

43 Linear Search Algorithm:  linear search or sequential search is a method for finding a target value within a list. It sequentially checks each element of the list for the target value until a match is found or until all the elements have been searched.

44 Linear Search Algorithm

45 Visualising of google map

46 Dijkstra’s Algorithm: Dijkstra's algorithm is an algorithm for finding the shortest paths between nodes in a graph, which may represent, for example, road networks. It picks the unvisited vertex with the lowest distance, calculates the distance through it to each unvisited neighbor, and updates the neighbor's distance if smaller

47

48 Learning and achievements
We learnt “Graphical user interface” which was interesting We learnt about popup windows. Handling a such huge code for the very first time We learnt how to resolve errors in such a huge code. We discover new searching and sorting algorithms We learn how google map works And the group coordination was also a good experience with some enjoyments. We also gain confidence to ourselves.

49 Improvement and future work
In future we will modify our project in to online application. We will also apply patterns.

50 Thank You!


Download ppt "University Of Karachi Department Of Computer Science"

Similar presentations


Ads by Google