Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Movie Ticket Software Key programming concepts: variables, input, output, if statements Commands you can t use: exit, quit, and any such functions that stop the
Movie Ticket Software
Key programming concepts: variables, input, output, if statements
Commands you cant use: exit, quit, and any such functions that stop the execution of the program in the
middle
Program Inputs
Available Movies Today:
Display to the user the table of movie choices and showtimes
Movie Choice:
User will always enter a single letter but it may not match an actual movie choice
Showtime:
User will always enter a positive whole number but it may not match a valid option
Adult tickets:
User will always enter a positive whole number but only total kids adult tickets
can be purchased at a time
Kid tickets:
User will always enter a positive whole number but only total kidsadult tickets
can be purchased at a time
Program Outputs
Total cost: $XXX
replace XXX with the total ticket cost showing at most decimal places
Invalid option; please restart app...
Display this message if the user chooses an improper option
If the movie andor showtime is invalid, then the program must stop and display Invalid
input; please restart the app...
Assignment Details
Your task is to create a program for selling movie tickets! The program will only support a
few select movies and times but will allow the user to select their movie, desired showtime, and
number of tickets to purchase. Each movie and its respective showtime is given in the table below.
Note that the prices for each movie depend on the time of the movie and the type of ticket being
purchased!
COPC Python HW
Table : Per ticket cost
Before pm After pm
Adult $ $
Child $ $
Table : Movies and Showtimes
Menu Option Title Showtimes
A Strong ::::
B Coco ::
C The Post ::::
Sample Output
The following test cases do not cover all possible scenarios develop your own! but should
indicate if your code is on the right track. To guarantee full credit, your programs output
should exactly match the output below.
Test Case :
Available movies today:
A Strong: ::::
BCoco: ::
CThe Post: ::::
Movie choice: B
Showtime:
Adult tickets:
Kid tickets:
Total cost: $
Test Case :
Available movies today:
A Strong: ::::
BCoco: ::
CThe Post: ::::
Movie choice: A
Showtime:
Invalid option; please restart app...
COPC Python HW
Test Case :
Available movies today:
A Strong: ::::
BCoco: ::
CThe Post: ::::
Movie choice: F
Showtime:
Invalid option; please restart app...
Test Case :
Available movies today:
A Strong: ::::
BCoco: ::
CThe Post: ::::
Movie choice: C
Showtime:
Adult tickets:
Kid tickets:
Total cost: $
Test Case :
Available movies today:
A Strong: ::::
BCoco: ::
CThe Post: ::::
Movie choice: A
Showtime:
Adult tickets:
Kid tickets:
Invalid option; please restart app...
Test Case :
Available movies today:
A Strong: ::::
BCoco: ::
CThe Post: ::::
Movie choice: B
Showtime:
Invalid option; please restart app...
COPC Python HW
Test Case :
Available movies today:
A Strong: ::::
BCoco: ::
CThe Post: ::::
Movie choice: A
Showtime:
Adult tickets:
Kid tickets:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started