In summary, this code primarily focuses on managing a list of films, allowing users to reserve seats for a chosen movie, and sorting an array using the bubble sort algorithm.
This code:
- Prints the current time and date to the console.
- Displays a list of available films and provides instructions for interacting with them.
- Defines a Film class to represent movie information.
- Creates an array Films containing movie objects.
- Assigns unique IDs to each movie in the Films array.
- Defines a function GetTicket(number, nameOfFilm) to allow users to select and reserve movie seats.
- Implements a bubble sort algorithm to sort an array called arr.
- Sorts and displays the sorted array.