2. Functions of Cinema Application: With these above files, your program output may be look like: List of films: FilmID GenreID Title Country USA Year Iron man I 2010 Impossible mission God father I 2010 USA 1 2010 USA God father II 2010 USA List of rooms: RoomID Name Theatre A NumberRows NumberCols 10 10 Theatre B 10 10 Theatre C 10 5 List of shows: ShowID FildID RoomID Date Price Slot 20-05-2020 10.0 20-05-2020 10.0 6 1 1 20-05-2020 10.0 3 1 20-05-2020 10.0 4 List of bookings: ID ShowID Name Kien Mai 1 Class SE1625, Group 1 MENU 1. Register a show 2. Book seats for a show 3. Exit Please enter in the range (1 - 3] :

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 9PP
icon
Related questions
Question

Please use "C" code

2. Functions of Cinema Application:
With these above files, your program output may be look like:
List of films:
FilmID GenreID Title
Year
Country
Iron man I
2010
USA
2
1
Impossible mission
2010
USA
1
God father I
2010
USA
4
List of rooms:
RoomID Name
God father II
2010
USA
NumberRows
NumberCols
Theatre A
10
10
2
3
List of shows:
ShowID FildID RoomID
Theatre B
10
10
Theatre C
10
5.
Date
Price
Slot
2
20-05-2020
10.0
2
1
20-05-2020
10.e
1
1
20-05-2020
10.е
20-05-2020
10.е
List of bookings:
ID
ShowID Name
Kien
Mai
Class SE1625, Group 1
MENU
1. Register a show
2. Book seats for a show
3. Еxit
Please enter in the range [1 - 3] :
1634
Transcribed Image Text:2. Functions of Cinema Application: With these above files, your program output may be look like: List of films: FilmID GenreID Title Year Country Iron man I 2010 USA 2 1 Impossible mission 2010 USA 1 God father I 2010 USA 4 List of rooms: RoomID Name God father II 2010 USA NumberRows NumberCols Theatre A 10 10 2 3 List of shows: ShowID FildID RoomID Theatre B 10 10 Theatre C 10 5. Date Price Slot 2 20-05-2020 10.0 2 1 20-05-2020 10.e 1 1 20-05-2020 10.е 20-05-2020 10.е List of bookings: ID ShowID Name Kien Mai Class SE1625, Group 1 MENU 1. Register a show 2. Book seats for a show 3. Еxit Please enter in the range [1 - 3] : 1634
to develop a Console application named Cinema system. This system
contains two main functions: Register a show, and Book seats for a show. (see description of
Cinema system in the document "List of sample projects").
1. Files used by Cinema Application:
All information about films, rooms, shows, roomStatus, bookings are stored in files
films.txt, rooms.txt, shows.txt, and bookings.txt respectively.
All contents of these files are described below:
1) Films.txt file:
1
1
Iron man I 2010 USA
impossible mission
God father I
2
1
2010 USA
1
2010 USA
4
1
God father II
2010 USA
Each line contains information of a film, including film ID, genre ID, title, year, country
code. Each data field is separated by a tab.
2) Rooms.txt file:
1
Theatre A 10
10
2
Theatre B 10
15
Theatre c 10
20
3
Each line contains information of a room, including room ID, name, number of rows, and
number of columns. Each data field is separated by a tab.
3) Shows.txt file:
20/05/2020 10.0 1
20/05/2020 10.0 2
20/05/2020 10.0 3
20/05/2020 10.0 4
1
1
1
1
1
1
1
4
1
1
Each line contains information of a show, including show ID, film ID, room ID, show date,
price, and slot time (from 1 to 9). Each data field is separated by a tab.
5) Bookings file:
1
1
Kien 111000000000000...00000000000000000000000000
Lan 000110000000000...00000000000000000000000000
Each line contains information of a booking, including booking ID, show ID, customer's
me, and status seats for this booking ('1'– booked, and 0' – available). Each data filed is
separated by a tab.
Transcribed Image Text:to develop a Console application named Cinema system. This system contains two main functions: Register a show, and Book seats for a show. (see description of Cinema system in the document "List of sample projects"). 1. Files used by Cinema Application: All information about films, rooms, shows, roomStatus, bookings are stored in files films.txt, rooms.txt, shows.txt, and bookings.txt respectively. All contents of these files are described below: 1) Films.txt file: 1 1 Iron man I 2010 USA impossible mission God father I 2 1 2010 USA 1 2010 USA 4 1 God father II 2010 USA Each line contains information of a film, including film ID, genre ID, title, year, country code. Each data field is separated by a tab. 2) Rooms.txt file: 1 Theatre A 10 10 2 Theatre B 10 15 Theatre c 10 20 3 Each line contains information of a room, including room ID, name, number of rows, and number of columns. Each data field is separated by a tab. 3) Shows.txt file: 20/05/2020 10.0 1 20/05/2020 10.0 2 20/05/2020 10.0 3 20/05/2020 10.0 4 1 1 1 1 1 1 1 4 1 1 Each line contains information of a show, including show ID, film ID, room ID, show date, price, and slot time (from 1 to 9). Each data field is separated by a tab. 5) Bookings file: 1 1 Kien 111000000000000...00000000000000000000000000 Lan 000110000000000...00000000000000000000000000 Each line contains information of a booking, including booking ID, show ID, customer's me, and status seats for this booking ('1'– booked, and 0' – available). Each data filed is separated by a tab.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Study of Characters
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage