Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write in c program, IMPORTANT PLEASE USE SWITCH...CASE AND IF STATEMENTS (I've said this before and been ignored) Problem Description You have been hired

Please write in c program, IMPORTANT PLEASE USE SWITCH...CASE AND IF STATEMENTS (I've said this before and been ignored)

image text in transcribed image text in transcribed image text in transcribed image text in transcribed

Problem Description You have been hired by a movie theatre to write an application which can compute the price of a ticket and any other charges to get the total price for the movie and print an itemized receipt. The price of a ticket is computed based on the following rules: . . . . . The base price of a ticket is $14.00 Weekend tickets are increased by 20% of the base price, Evening tickets (17:00 or later) cost $3 more than matinee tickets, Blockbuster movies cost 10% more than the base price, Patrons 16 and younger get a 15% discount on the computed ticket price (not including food), Patrons 65 and older get a 10% discount on the computed ticket price, A snack pass is available for $15 which will allow you to get 3 medium sized drinks and 2 medium sized popcorn, VIP seating (includes a pillow!) is available on weekdays after 17:00 and all day on weekends. VIP seats can be purchased for an additional $5. The program will only ask if the patron wishes to purchase VIP seating if it is available for the show time selected. Taxes are calculated at 13% on the total of all purchases. . The program will be pre-loaded with the schedule of the following movies. Title The Gentleman The Invisible Man Sonic The Hedgehog Bad Boys for Life Blockbuster Showtimes No Wed 15:30, Thu 19:00, Sat 13:00 No Tue 13:30. Wed 19:00, Sun 13:00 Yes Mon 16:30, Fri 14:00 No Mon 17:30, Wed 10:00, Sat 13:00, Sun 15:00 A single run of the program is necessary to purchase a single ticket. If you want to purchase multiple tickets, the program must be run multiple times. The following shows example outputs from the program handling various scenarios. Note that all data is checked for validity (except the age) and the program continues to prompt until it gets valid data. Child purchasing weekday matinee blockbuster Enter your age: 12 Please select from the following movies: 1- The Gentleman 2- The Invisible Man 3- Sonic The Hedgehog 4- Bad Boys for Life 3 Select one of the following showing times: 1- Mon 16:30 2- Fri 14:00 2 Would you like to purchase our snack pass? y ********** Seneca Theatre ********** Sonic The Hedgehog Fri 14:00 15.40 Age Discount 2.31 Snack Pass 15.00 Tax 3.65 Total 31.74 Adult Purchasing weeknight non-blockbuster with VIP Enter your age: 42 Please select from the following movies: 1- The Gentleman 2- The Invisible Man 3- Sonic The Hedgehog 4- Bad Boys for Life 1 Select one of the following showing times: 1- Wed 15:30 2- Thu 19:00 3- Sat 13:00 2 Would you like to purchase VIP seating for The Gentleman Thu 19:00? z Invalid selection: must be Y or N y Would you like to purchase our snack pass? n ********** Seneca Theatre ********** The Gentleman Thu 19:00 17.00 VIP Seating 5.00 Tax 2.86 Total 24.86 -Senior purchasing weekend matinee with no extras Enter your age: 66 Please select from the following movies: 1 - The Gentleman 2- The Invisible Man 3- Sonic The Hedgehog 4- Bad Boys for Life 5 Invalid selection: must be between 1 and 4. Please select from the following movies: 1- The Gentleman 2- The Invisible Man 3- Sonic The Hedgehog 4- Bad Boys for Life 1 Select one of the following showing times: 1- Wed 15:30 2- Thu 19:00 3- Sat 13:00 4 Invalid selection: must be between 1 and 3. Select one of the following showing times: 1- Wed 15:30 2- Thu 19:00 3- Sat 13:00 3 Would you like to purchase VIP seating for The Gentleman Sat 13:00? n Would you like to purchase our snack pass? n ********** Seneca Theatre ********** The Gentleman Sat 13:00 16.80 Age Discount 1.68 Tax 1.97 Total 17.09

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

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

Incomes can be declared to the Tax Board via the Internet.

Answered: 1 week ago