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. 2 5 10 3 7 11 12 13 14 15 16 17 18 19 20 Row-1 = seats 1 to 5 Row-2 = seats 6 to 10 band-A band-A Seats in price-band-A cost twice as Row-3 = seats 11 to 15 = band-B much as seats in price-band-B Row-4 = seats 16 to 20 = band-B

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Page
3
of 6
ZOOM
+
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
4
6
7
9
10
11
12
13
14
15
16
17
18
19
20
Row-1 = seats 1 to 5
band-A
Row-2 = seats 6 to 10
band-A
Seats in price-band-A cost twice as
Row-3 = seats 11 to 15
band-B
much as seats in price-band-B
Row-4 = seats 16 to 20
band-B
The show runs once a night, five nights a week
Transcribed Image Text:Page 3 of 6 ZOOM + 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 4 6 7 9 10 11 12 13 14 15 16 17 18 19 20 Row-1 = seats 1 to 5 band-A Row-2 = seats 6 to 10 band-A Seats in price-band-A cost twice as Row-3 = seats 11 to 15 band-B much as seats in price-band-B Row-4 = seats 16 to 20 band-B The show runs once a night, five nights a week
Page
4
of 6
ZOOM
+
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 band-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)
Transcribed Image Text:Page 4 of 6 ZOOM + 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 band-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)
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Arrays
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education