Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DON'T COPY-PASTE THIS ANSWER FROM OTHER QS!!! I NEED MODULARIZED PYTHON CODE, THERE SHOULD BE A 2D Array c = int(input(Enter cost of the production:

image text in transcribed

image text in transcribed

image text in transcribed

DON'T COPY-PASTE THIS ANSWER FROM OTHER QS!!!

I NEED MODULARIZED PYTHON CODE, THERE SHOULD BE A 2D Array

c = int(input("Enter cost of the production: ")) a = int(input("Enter price of a seat in band-A: ")) b = int(input("Enter price of a seat in band-B: ")) while c!=(10*a+10*b): print() print("Ratio of cost and total price is",c/(10*a+10*b)) c = int(input("Enter cost of the productio: ")) a = int(input("Enter price of a seat in band-A: ")) b = int(input("Enter price of a seat in band-B: ")) print() print("final cost is: ",c) print("final price of a seat in band-A is: ",a) print("final price of a seat in band-B is: ",b)
Requirements: The latest production of the science-fiction blockbuster, "Bilbo of Hogwarts has transferred to the stage. It is trialling in a small theatre so projection models can be tested for financial viability. Design, implement and execute a program using a 2d-array to transform input to output information in the form of a 'dashboard'. Provide theatre management with a dashboard where they can input the cost of the production, followed by input of the price of a seat in band-A and the price of a seat in band-B (to calculate income). This way, they can try different values on each run of the program to help them see combinations of costs/prices that will tell them when they break-even i.e. cost = income Problem Specification: STAGE seat number 1 6 11 16 UNUN 3 8 13 18 4 9 14 19 5 10 15 20 12 17 Co w Il Row-1 seats 1 to 5 Row-2 = seats 6 to 10 band-A band-A Row-3 = seats 11 to 15 Row-4 = seats 16 to 20 band-B band-B Stats In price-band A cost twice as much as seats in price-band-B The show runs once a night, five nights a week INPUT: All integer, no validation or ranges needed. Although the user can enter whatever numbers they wish for testing purposes you should consider a more realistic scenario - see below. 1. Input production cost: The overall cost to set up the production Keep is sensible - maybe aim at maximum of 5000? By the same argument, is a production costs of 100 realistic? 2. Input the cost of one seat in band-A (band-A costs double band-B) 3. Input the cost of one seat in barid-B (band-B is half the cost of band-A) Keep seat costs sensible - be realistic - don't have the cost of a production at 5000 and offer seats at 1000 each! It may be difficult to sell seats costing more than, say, 50? - you decide for testing purposes - but validation is not required. PROCESS Part-1: Full house a) How many days to break-even based on seat sales Part-2: Part house a) How many days for the production to break even based on seat sales (Use a random function to randomly allocate seats and use this as the basis for projection) OUTPUT: (Dashboard design at your discretion) Full house Production cost () Band-A price Band-B price 3000 20 10 Revenue: Band-A at 20.00 Band-A sales (10 seats) IN 200 Band-B at 10.00 Band-B sales (10 seats) 100 Total for the night 300 Break-even (rounded up) 3000/300 = 10 days Part-house Production cost Band-A price Band-B price f 3000 20 10 Revenue: Band-A at 20.00 Band-A sales (6 seats) 120 Band-B at 10.00 Band-B sales (2 seats) 20 Total for the night 140 Break-even (rounded up) 3000/140 = 21.42 = 22 days

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

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

0619064625, 978-0619064624

More Books

Students also viewed these Databases questions

Question

Compare the current team to the ideal team.

Answered: 1 week ago

Question

a. Do team members trust each other?

Answered: 1 week ago

Question

How do members envision the ideal team?

Answered: 1 week ago