Answered step by step
Verified Expert Solution
Link Copied!

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 can
t 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
3
0
total
(
kids
+
adult
)
tickets
can be purchased at a time
Kid tickets:
User will always enter a positive whole number but only
3
0
total
(
kids
+
adult
)
tickets
can be purchased at a time
Program Outputs
Total cost: $XXX
replace XXX with the total ticket cost showing at most
2
decimal places
Invalid option; please restart app...
Display this message if the user chooses an improper option
If the movie and
/
or 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!
COP
3
5
0
2
C Python HW
1
Table
1
: Per ticket cost
Before
2
pm After
2
pm
Adult $
1
1
.
1
7
$
1
2
.
4
5
Child $
8
.
0
0
$
9
.
6
8
Table
2
: Movies and Showtimes
Menu Option Title Showtimes
A
1
2
Strong
1
)
2
:
3
0
2
)
4
:
4
0
3
)
7
:
5
0
4
)
1
0
:
5
0
B Coco
1
)
1
2
:
4
0
2
)
3
:
4
5
C The Post
1
)
1
2
:
4
5
2
)
3
:
3
5
3
)
7
:
0
5
4
)
9
:
5
5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

Prepare a short profile of Lucy Clifford ?

Answered: 1 week ago

Question

Prepare a short profile of Rosa parks?

Answered: 1 week ago

Question

Prepare a short profile of victor marie hugo ?

Answered: 1 week ago

Question

Prepare a short profile of Henry words worth Longfellow?

Answered: 1 week ago

Question

Lo6 Identify several management development methods.

Answered: 1 week ago