Placeholder

CMIS 102 Assignment 2 Compute Theater Ticket Price

$19.00

Description

The second assignment involves writing a Python program to compute the price of a theater ticket. Your program should prompt the user for the patron’s age and whether the movie is 3D. Children and seniors should receive a discounted price. There should be a surcharge for movies that are 3D. You should decide on the age cutoffs for children and seniors and the prices for the three different age groups. You should also decide on the amount of the surcharge for 3D movies. Your program should output the ticket price for the movie ticket based on the age entered and whether the movie is in 3D.
Your program should include the pseudocode used for your design in the comments. Document the values you chose for the age cutoffs for children and seniors, the prices for the three different age groups and the surcharge for 3D movies in your comments as well.
You are to submit your Python program as a file (.py) file. In addition, you are also to submit a test report in a Word document or a .pdf file. 15% of your grade will be based on whether the comments in your program include the pseudocode and define the values of your constants, 70% on whether your program executes correctly on all test cases and 15% on the completeness of your test report.
SCREENSHOTS
SOLUTION
PAYMENT
CMIS 102 Assignment 2 TestCases
CMIS 102 Week 2
CMIS 102 Assignment 2
The solution consists of:
A report word document for this assignment
All Python programs in case you want to run theses programs on your computer.
Screenshots while running programs
Attachments [Move over files to preview content of those files]
CMIS102_Assignment_2.zip (143.30 KB)
CMIS 102 Assignment 2 Report.docx
CMIS102-Assignment-2-Pseudocode-Screenshot.png
CMIS102-Assignment-2-Screenshot.png
CMIS102-Assignment-2-TestCase-Screenshot.png
source code
movie_theatre.py
Preview movie_theatre.py
xx __xxxx__ == ‘__xxxx__’:
xxxxx(‘—————-x xxxxxxx xx xxx xxxxx xxxxxxx x—————–‘)
xxxxx(‘xxxxxxxx xxx xxxxxx xxxxxxxx xxxx xxxxxxx x xxxxxxxx.’)
xxxxx(“xxxxxxxx’x xxxxxx xxxx (xxx <= 12): $8") xxxxx("xxxxxx'x xxxxxx xxxx (13 <= xxx <=64): $9") print("Adult's ticket cost (age >= 65): $10″) print(“3D movie surcharge: $2”) # ask the user to enter age age = int(input(“What is your age? “)) # define ticket’s price children_ticket = 8 adult_ticket = 10
xxxxxx_xxxxxx = 9
xx xxx <= 12: xxxxx("xxx xxxxxxxx'x xxxxxx xxxxx", xxxxxxxx_xxxxxx) xxxx xxx <= 64: xxxxx("xxx xxxxx xxxxxx xxxxx", xxxxx_xxxxxx) Price: $19 You May Also Like: CMIS 102 Assignment 1 Salesman Weekly Pay CMIS 102 Assignment 3 Compute Cost of Carpeting a Room CMIS 102 Assignment 4 Compute Average quiz Grade CMIS 102 Assignment 5 Secure Password CMIS 102 Assignment 6 Converting Celsius to Fahrenheit CMIS 102 Final Project Body Mass Index

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.