Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Purchasing tickets to Radio City Music Hall In the Resources section of this assignment in Canvas, there is a seating chart of Radio City Music

Purchasing tickets to Radio City Music Hall
In the Resources section of this assignment in Canvas, there is a seating chart of Radio City Music Hall, in New York City. Write a script that describes the prices for different seats, prompts the user for the section in which they would like a seat, and outputs the price of a ticket for that section, which includes a service fee and tax charged on the entire transaction, rounded to the nearest whole dollar amount. Output on two sample executions is on the next page. Note that the third mezzanine is closed for repairs and so is not offered to the user as an option.
In the pages that follow, please provide a storyboard that shows that you are carrying out the writing of the script step by step. I have done the first step for you. The basic idea is to use one or more if, else, and/or elif statements to test the users input, and charge different seat prices depending on which section they have specified in their input. You can assume that the user will always enter a correct letter choice, that is, one of the three that you prompt them with. In other words, your program does not need to handle the case where they enter anything else.
When you pass the function round a float as its only parameter it returns the number passed in as an int rounded to the nearest whole number. Here are a few sample executions of this function in the IDLE shell, and I recommend that you experiment with it in the IDLE shell before using it in your script:
Each page of the storyboard should have a screen snipping, a step number, and a textual description that discusses the screen snipping. Your storyboard should have a minimum of 12 steps, one per page, though you are free to include more steps. Many of these steps should be running the code in PythonTutor. You are required to use PythonTutor to check if your conditional expressions in your if, else, and elif statements are correct. As I have done in the storyboard for Problem 1, stop execution just before each of the if, else, and elif statements executes, and in your step description, make a prediction of whether the conditional expression in the next line to execute is True or False, state how you predicted this (in terms of what you looked at and what you looked for), and state where the red arrow will point after you press the Next button. Your screen snipping should show that you stopped in the correct place. In the step after, press the Next button, and state whether your prediction is correct, correcting your code as required and redoing one or more previous steps. As I have done in the storyboards this week, test inputs of O,F, and S one after the other (in that order) by returning to the PythonTutor code editor and then re-entering the execution visualizer. Each screen snipping in PythonTutor should include the code execution window (including the arrows), memory, and the print output window, sized to fit in this Word document as I have provided in my example storyboards. Each screen snipping in the IDLE code editor should include the same amount of the code editor as has been used in previous storyboards (including line numbers), sized to fit in this Word document as I have provided in my example storyboards.
Your final step of the storyboard should show the script executing in IDLE using the same user input for seat choice as in the execution illustrated in the snipping above. Use a two-cell table as in the final step of problem 1 to show that your output in IDLE is identical to my output above, or as close as you are able to get it. You should include a statement on this step indicating whether your output is identical or not, as you did for the final step of problem 1.

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

ISBN: 133544613, 978-0133544619

More Books

Students also viewed these Databases questions