Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

coded in python You are considering opening a Broadway play called Dear Huxley: The Musical, a charming story of the effects of social media on

coded in python image text in transcribed
image text in transcribed
You are considering opening a Broadway play called "Dear Huxley: The Musical", a charming story of the effects of social media on dalmatians. You have estimated that it will cost $5 million to develop the show. Due to union contracts, you will be able to run 1 show daily on Wednesday and Thursday, and 2 shows daily from Friday to Sunday with Monday and Tuesday being days when the show will not run. The theater's capacity is 1,200 and it costs $5,500 to open the theatre each night. The contract will allow a maximum run of 52 weeks. Before investors put money into the show, they want to know some information first. - Given user input information, how many weeks does the show need to run to break-even on the development costs. Note, a show cannot run for a fraction of a week. - Given user input information, what is the total profit for the 52 weeks Before you begin writing code, you should review everything that you need to do and draw out your algorithm (flowchart) for the code. This can either be on paper (which you will need to take a picture of) or on Excel. Make sure that your algorithm flowchart: - Uses the proper symbology (we only use 4 shapes in this course) - That every path can trace from the beginning to the end (there should be no dead ends) - Direction arrows clearly show the direction of the code. Write a program that will answer the two questions that the investors have asked, how quickly will the show breakezen and how much it will make over a year. The program should ask the user to input: - Profit per ticket sold Write a program that will answer the two questions that the investors have asked, how quickly will the show break even and how much it will make over a year. The program should ask the usel to input: - Profit per ticket sold - What is the average percentage that the theater is filled each night - Concession profit per ticket sold Note: the variable names should be descriptive. The program should also validate the inputs to make sure that they are number that are realistic (Input validation). The program should take the inputs and then process the following: - How many weeks it takes to break even (while loop) - Calculate the profit after 52 weeks (basic math) After the calculation, the program should display: - How many weeks it takes to break even (locale function) - The profit after 52 weeks (locale function) Don't forget to inclade comments at the top indicating the purpose of the program and your name as the programmer as well as throughout the program where appropriate (section headers are very useful for a program like this)

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

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions