Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You run a movie theatre that uses the following pricing scheme for tickets: Write a program that starts by allowing the user to enter time

image text in transcribed
You run a movie theatre that uses the following pricing scheme for tickets: Write a program that starts by allowing the user to enter time of their desired showing. The time should be entered in 24-hour format as a single integer for example, 1615 would be 4: 15 pm, 1130 would be 11: 30 am, and 0 would be midnight. Midnight is the latest showing offered by the theater. The program should then prompt the user to enter the ages of all members in his/her party. Once the user has finished entering the ages, the program should report the number of regular, child, and senior tickets sold, along with the subtotals for each of those categories. Finally, the program should show the about adding tax separately. Here's a sample of what your program might look like when you run it. As usual, the underlined portions indicate what you type into the program as it's running. What time infinity your showing? Please enter the age of Party member 1: any negative value to exit) 21 Please enter the age of party member 2: (any negative value to exit) 19 Please enter the age of party member 3: (any negative value to exit) 70 Please enter the age of party member 4: (any negative value to exit) 3 Please enter the age of party member 5: (any negative value to exit) -5 Optional challenge (not required): Can you make the Program force the user to enter at least one non-child ticket before allowing him/her to check out?. The theatre doesn't want of unsupervised toddler roving around

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_2

Step: 3

blur-text-image_3

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions