Project description
dariap_cine
They ask us to make a program about a cinema (only one room) has a set of seats (8 rows by 9 columns, for example). Regarding the cinema, we are interested in knowing the film that is being played and the price of admission to the cinema.
Of the films we are interested in knowing the title, duration, minimum age and director.
From the viewer, we are interested in knowing his name, age and the money he has.
The seats are labeled by a letter (column) and a number (row), row 1 starts at the end of the matrix as shown in the table. We must also know if the seat is occupied or not.
8 A 8 B 8 C 8 D 8 E 8 F 8 G 8 H 8 I
7 A 7 B 7 C 7 D 7 E 7 F 7 G 7 H 7 I
6 A 6 B 6 C 6 D 6 E 6 F 6 G 6 H 6 I
5 A 5 B 5 C 5 D 5 E 5 F 5 G 5 H 5 I
4 A 4 B 4 C 4 D 4 E 4 F 4 G 4 H 4 I
3 A 3 B 3 C 3 D 3 E 3 F 3 G 3 H 3 I
2 A 2 B 2 C 2 D 2 E 2 F 2 G 2 H 2 I
1 A 1 B 1 C 1 D 1 E 1 F 1 G 1 H 1 I
We will carry out a small simulation, in which we will generate many spectators and we will seat them randomly (we cannot where it is already occupied). In this version we will seat the spectators one at a time.
You can only sit if you have enough money, there is free space and you are old enough to see the movie, in case the seat is occupied we will find you a free one. Movie and viewer data can be totally random.
–
–
Download files
Download the file for your platform. If you’re not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size dariap_cine-1.0.5.tar.gz (5.7 kB) |
File type Source |
Python version
None |
Upload date |
Hashes
View |
–