This project is part of the Hyperskill Java track by JetBrains Academy. The Cinema Room Manager project focuses on managing cinema room seating arrangements using 2D arrays and data structures. It also emphasizes Object-Oriented Programming (OOP) principles in Java to handle various functionalities such as booking tickets, viewing available seats, and calculating revenue.
- Display Seating Arrangement: Show the current seating arrangement of the cinema room.
- Book Tickets: Allow users to book tickets for specific seats.
- Cancel Tickets: Allow users to cancel their bookings.
- Calculate Revenue: Calculate the current and potential revenue from ticket sales.
- Statistics: Provide statistics on the number of purchased tickets, percentage of occupancy, current income, and total income.
- Java Development Kit (JDK) 8 or higher
- Integrated Development Environment (IDE) such as IntelliJ IDEA or Eclipse
-
Clone the repository:
git clone https://github.com/yourusername/hyperskill-java-cinema-room-manager.git cd cinema-room-manager
-
Open the project in your IDE:
- Open your preferred IDE and import the cloned project.
-
Build the project:
- Use the build tool provided by your IDE (e.g., Maven or Gradle) to build the project.
-
Run the Program:
- Execute the main class
CinemaRoomManager.java
to run the program.
- Execute the main class
-
Menu Options:
- Show the seats: Displays the current seating arrangement.
- Buy a ticket: Allows the user to book a ticket by selecting a seat.
- Statistics: Shows statistics about ticket sales and revenue.
- Exit: Exits the program.