Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anuja-rahul/booking-app-javacw
Seat booking app made using java for a coursework.
https://github.com/anuja-rahul/booking-app-javacw
coursework java learning-by-doing
Last synced: about 8 hours ago
JSON representation
Seat booking app made using java for a coursework.
- Host: GitHub
- URL: https://github.com/anuja-rahul/booking-app-javacw
- Owner: anuja-rahul
- License: mit
- Created: 2024-03-06T15:44:16.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-27T12:31:26.000Z (8 months ago)
- Last Synced: 2024-03-27T13:38:25.470Z (8 months ago)
- Topics: coursework, java, learning-by-doing
- Language: Java
- Homepage:
- Size: 343 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
![GitHub](https://img.shields.io/github/forks/anuja-rahul/booking-app-javaCW?style=for-the-badge&logo=github)
![GitHub](https://img.shields.io/github/license/anuja-rahul/booking-app-javaCW?style=for-the-badge&logo=github)
![GitHub](https://img.shields.io/github/stars/anuja-rahul/booking-app-javaCW?style=for-the-badge&logo=github)![Java](https://img.shields.io/badge/java-000?style=for-the-badge&logo=openjdk&logoColor=f89820)
### Booking App (SD-02) `coursework`
---
#### Note
- As per the rules of coursework no dynamic arrays or any external
packages were used.- Only some of the basic data types were used:
- char
- double
- boolean
- int
- String
- String[]
- String[][]---
![Mermaid](https://img.shields.io/badge/Mermaid-000?style=for-the-badge&logo=mermaid)
![Markdown](https://img.shields.io/badge/Markdown-000?style=for-the-badge&logo=markdown)#### Class diagram representation of the booking app
```mermaid
classDiagram
note "+ public"
note "- private"
direction LR
W20530884_20232268_booking_app -- Ticket
Functions <.. DataHandler
Functions <.. Ticket
Functions <.. FileHandler
W20530884_20232268_booking_app ..> DataHandler
W20530884_20232268_booking_app -- Person
W20530884_20232268_booking_app ..> Functions
Ticket *-- Person
FileHandler *-- Ticket
W20530884_20232268_booking_app: +String[] args
W20530884_20232268_booking_app: -buySeat(DataHandler)
W20530884_20232268_booking_app: -cancelSeat(DataHandler)
W20530884_20232268_booking_app: -printTickets(DataHandler)
W20530884_20232268_booking_app: -searchTickets(DataHandler)
W20530884_20232268_booking_app: -getChoice(int) boolean
W20530884_20232268_booking_app: -getUserInfo() String[]
W20530884_20232268_booking_app: -getSeatInfo() String[]
W20530884_20232268_booking_app: -manageTicket(String, String, Person, DataHandler, boolean) Ticket
class DataHandler{
+String[] bookedSeats
+String[] availableSeats
+String[] allSeats
+String[][] seatRecord
+String[][] ticketRecord
+getBookedSeats() String[]
+setBookedSeats(String[])
+initRecords(boolean) String[][]
+updateSeatRecord(String[], boolean)
+updateTicketRecord(String[], boolean)
+getTotalSales() double
+addNewBookedSeat(String[])
+removeBookedSeat(String[])
+updateAvailableSeats(boolean)
+getFirstAvailableSeat() String
+getSeatInformation(String[]) String[]
}class FileHandler{
+String rootPath
+File folderPath
+Ticket ticket
+getTicket() Ticket
+setTicket(Ticket)
-createDirectory()
+writeToFile(boolean)
}class Ticket{
+String row
+String seat
+double price
+Person person
+getRow() String
+getSeat() String
+getPrice() double
+getPerson() Person
+getTicketPrice(String) double
+generateTicket() String[]
+saveTicket(boolean)
+getTickets(String[][], double) String[]
+getTicket()
}class Person{
+String name
+String surname
+String email
+getName() String
+getSurname() String
+getEmail() String
+getPerson()
}class Functions{
+String[] rows
+String[] columns
+String[] shortRows
+String[] shortColumns
+updateArray(String[], String) String[]
+removeFromArray(String[], String) String[]
+checkArrayValues(String, String[]) boolean
+getIndex(String[], String) int
+assignAllSeats() String[]
+printSeatingPlan(String[][])
+validateSeatInputs(String, String) boolean
+printArrays(String[])
+formatTicket(String[]) String
}
```
---