Skip to content

kryzanivska-nastya/cinema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Cinema in console


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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published