The second assignment involves writing a Python program to compute the price of a theater ticket....

80.2K

Verified Solution

Question

Programming

The second assignment involves writing a Python program tocompute the price of a theater ticket. Your program should promptthe user for the patron's age and whether the movie is 3D. Childrenand seniors should receive a discounted price. There should be asurcharge for movies that are 3D. You should decide on the agecutoffs for children and seniors and the prices for the threedifferent age groups. You should also decide on the amount of thesurcharge for 3D movies. Your program should output the ticketprice for the movie ticket based on the age entered and whether themovie is in 3D.

Your program should include the pseudocode used for your design inthe comments. Document the values you chose for the age cutoffs forchildren and seniors, the prices for the three different age groupsand the surcharge for 3D movies in your comments as well.

You are to submit your Python program as a text file (.txt) file.In addition, you are also to submit a test report in a Worddocument or a .pdf file. 15% of your grade will be based on whetherthe comments in your program include the pseudocode and define thevalues of your constants, 70% on whether your program executescorrectly on all test cases and 15% on the completeness of yourtest report.

Answer & Explanation Solved by verified expert
4.0 Ratings (597 Votes)
Short SummaryImplemented the program as per the requirementAttached source code and outputPlease do upvote to appreciate our timeThank youSource CodeCRITERIA FOR TICKET PRICEAge cutOff for children is 18 60Regular price of a ticket is    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students