Question: Unit 3 - Practice Exercises Complete the following exercise in Notepad in our pseudocode as presented in the text book and material on Blackboard in

Unit 3 - Practice Exercises Complete the following exercise in Notepad in our pseudocode as presented in the text book and material on Blackboard in this Unit, and following all requirements for programs that were shown in Unit 2 and all examples since then. Problem 1 Revise the program that you wrote for Problem 2 in the Chapter 2 practice exercises, as described below: 1. Assume, for simplicity's sake, that the user will only purchase one type of ticket 2. As shown in the gym membership example on Blackboard, a. Declare constants for the various types of tickets, c.g., integer GENERAL_ADMISSION = 0, etc. b. Output a message saying what to enter in order to purchase a specific type of ticket, e.g., if the user wants to purchase a general admission ticket, they would have to input whatever value is assigned to the general admission constant in #2 above (if you set it to 0 as I showed in the example above, then they should enter 0) 3. Once they choose a ticket type, ask for how many tickets they want and how many cars they will park 4. Write an if statement that determines what type of ticket they chose, and therefore, what the cost of a single ticket is 5. Calculate and output the total for their tickets after including the convenience fee and sales tax of 7.5%. For your reference, here is the problem description again: Single-day admission prices to a theme park are as follows: General Admission $44.95 Child Admission $39.95 Military Admission $37.95 Senior Admission $35.95 Parking (per car) $10 There is also a convenience fee of $5.95 for ordering tickets online. Write pseudocode to represent the logic of a program that allows the user to enter the number of each type of admission that they want to purchase, and the number of cars they will park, and outputs an itemized list of the charges and the overall total for this online order
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
