Cinema ticket booking using BASH
This assignment requires you to write a portion of the self-service ticketing kiosk for a cinema using the bourne-again shell (bash). The self-service ticketing system will allow the public to check the availability of the cinema tickets for a particular movie and choose their own seating in the theatre as well as to purchase tickets themselves. A suggested interactive ticketing menu with color can be as follows:
JACKY Theatre’s Self-service Ticketing
- List all Movies and Show times
- Fast booking (where system will automatically select best seat)
- To select theatre’s seat manually
- Search by Screening times or by Movie title
echo -e '\E[COLOR1;COLOR2mSome text goes here.'
Choice 1 of the main menu will provide a list of all the movies and show times the theatre are screening. The list of movies can be populated from a flat file. Below is a sample of the file format with comma as the delimiter. You can add in extra fields if required.
|1300 – 2Oct,||UnderCovers,||Yes|
|1600 – 2Oct,||RoboCop,||No|
|1700 – 2Oct,||Predators,||Yes|
To select theatre’s seat manually