Question: 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
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!
Input:
Movies Available today
Display table of movies 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 kids adult tickets can be purchased at a time.
Output:
Total Cost: $XXX ticket cost rounded to TWO decimal places.
Invalid option; please restart app... displayed if an improper option is selected.
Examples:
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...
Test Case :
Available movies today:
A Strong: ::::
BCoco: ::
CThe Post: ::::
Movie choice: F
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...
Test Case :
Available movies today:
A Strong: ::::
BCoco: ::
CThe Post: ::::
Movie choice: A
Showtime:
Adult tickets:
Kid tickets:
Invalid option; please restart app...
PLEASE HELP I KEEP GETTING WRONG CODE!!!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
