CMIS 102 Assignment 2 Compute Theater Ticket Price

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.


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
    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
Add to Cart