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.

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

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)

OUTPUT: (Dashboard design at your discretion)
Full house £
Production cost (£) = 3000
Band-A price = 20
Band-B price = 10
Revenue:
Band-A at £20.00
Band-A sales (10 seats) = 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 = 3000
Band-A price = 20
Band-B price = 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 day

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
8
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: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 8 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
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Graphical User Interface
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
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