首页 > > 详细

辅导program程序语言、辅导Python编程设计辅导数据库SQL|辅导Database

Pizzaz cinema
Due date 11:59PM Sunday 11 April 2021 (local Sydney
time)
Be aware of daylight savings changes on 4 April 2021.
A message to all students about posting on Ed
This is an assignment and star are not permitted to give guidance on your code, or how to solve the
specic problem. That is the purpose of the assessment that you are required to perform to achieve
the grade.
You may ask clarication questions about the assignment description. This is often necessary to
implement functionality that is otherwise ambiguous.
The assignment description is not intended to be complete and you can conrm your assumptions in
a form of a question. In asking the question you should be quoting the description you are asking
about.
If you have a question to ask on Ed please search before asking. However, remember that you
should not be posting any assignment code publicly, as this would constitute academic
dishonesty.
Also, do not wait too long before starting. This assignment needs time and sustained eort.
Problem description
You are writing an interactive program for a local cinema. The program will allow users to view the
available movies, order tickets for one or multiple persons, and make transactions on the orders.
When ordering tickets, further information about each person can be asked. The order can also
determine if the number of persons in a group can see the movie. Finally, the purchase will involve a
transaction between the cinema involving calculations of nance.
Program data
The program has a predened schedule, room numbers and capacities. For the purposes of this
assignment, this information is xed and will not change. You can include this data in your program
source code.
Schedule of movies, their times and room
The Shining. 1980. 2h 26m. 10:00. Room 1
Your Name. 2016. 1h 52m. 13:00. Room 1
Fate/Stay Night: Heaven's Feel - III. Spring Song. 2020. 2h 0m. 15:00. Room 1
The Night Is Short, Walk on Girl. 2017. 1h 32m. 17:30. Room 1
The Truman Show. 1998. 1h 47m. 19:30. Room 1
Genocidal Organ. 2017. 1hr 55m. 21:45. Room 1
Jacob's Ladder. 1990. 1h 56m. 10:00. Room 2
Parasite. 2019. 2h 12m. 12:15. Room 2
The Dark Knight. 2008. 2h 32min. 14:45. Room 2
Blade Runner 2049. 2017. 2h 44m. 17:45. Room 2
The Mist. 2007. 2h 6m. 21:00. Room 2
Demon Slayer: Mugen Train. 2020. 1h59min. 23:20. Room 2
The Matrix. 1999. 2h 16m. 10:00. Room 3
Inception. 2010. 2h 42m. 11:30. Room 3
Shutter Island. 2010. 2h 19m. 14:30. Room 3
Soul. 2020. 1hr 40m. 17:00. Room 3
Mrs. Brown. 1997. 1h 41min. 19:00. Room 3
Peppa Pig: Festival of Fun. 2019. 1h 8min. 21:00. Room 3
Titanic. 1997. 3h 30min. 22:15. Room 3
Room information
Each room has a dierent capacity and distinct areas for seating. The total number of seats will
become important when considering group bookings.
Key
* - represents empty space for walkways
A , B , C , D , E , - represent a section of seating
Room 1 - 35 seats
****************
*CCC*AAAA*BBB*DD
*CCC*AAAA*BBB*DD
*C*C*AAAA*BBB*DD
****************
Room 2 - 136 seats
***********************
AAA**BBBBB**CCCCCC**EEE
AAA**BBBBB**CCCCCC**EEE
AAA**BBBB**CCCCC**EEE
AAA**BBBB**CCCCC**EEE
AAA**BBBB**CCCCC**EEE
AAA*************EEE
AAAA*DDDDDDDDD*EEEE
AAAA*DDDDDDDDD*EEEE
AAAA*DDDDDDDDD*EEEE
*******************
Room 3 - 42 seats
AAA*BBBB
AAA*BBBB
AAA*BBBB
AAA*BBBB
AAA*BBBB
AAA*BBBB
Program operation
The program will be invoked by running the command
$ python3 pizzaz.py -- []
Where is a command used to control the purpose of the program.
There are three switches in this program:
python3 pizzaz.py --show - Will show all movie information where they begin
after time
python3 pizzaz.py --book - Will process the order and transaction for one person.
python3 pizzaz.py --group - Will process the order and transaction for a group of people.
First message
To complete this, you would need to have completed week 1 lecture and tutorial
For any switch option, at the beginning of the program you will greet the user with a 5 line banner. It
must be 5 lines as follows:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Welcome to Pizzaz cinema ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Switch errors
To complete this, you would need to have completed week 2 lecture and tutorial
If there is no switch provided, print the error message and terminate the program. Usage: python3
pizzaz.py [ --show | --book | --group ]
If the switch options are not correct, the program will print an error message and the program will go
to the End of the program.
For example:
$ python3 pizzaz.py --greenhouse
-=-=-=-=-=-=-=-=-=-=-=-=-=-=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Welcome to Pizzaz cinema ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Sorry. This program does not recognise the switch options.
Bye.
$ python3 pizzaz.py haberjabby --book
-=-=-=-=-=-=-=-=-=-=-=-=-=-=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Welcome to Pizzaz cinema ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Sorry. This program does not recognise the switch options.
Bye.
$ python3 pizzaz.py --group abc
-=-=-=-=-=-=-=-=-=-=-=-=-=-=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Welcome to Pizzaz cinema ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Sorry. This program does not recognise the switch options.
Bye.
Switch --show
To complete this, you would need to have completed week 3 lecture and tutorial
With this switch your program will show all the movies starting from the time provided. The
parameter

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!