Each night when I leave campus, there is a band on campus playing something. They are pretty
Question:
Each night when I leave campus, there is a band on campus playing something. They are pretty good, and it is one of the things I enjoy when walking back to my car.
Let's say you are the manager to see when the bands are playing. Your job is to create a list of people who are playing and when. To keep this simple, you are tracking time by the number of minutes that passed since class got out. In other words, the time class got out is minute number 0.
You will need to ask the user the following question:
- When the first band will come out? (As an integer)
- How many bands will be playing tonight? (As an integer)
- For each band, ask the user how long that band will be playing. (As an integer)
Print out for each band when they go onto the stage. At the end print out the end time of the set.
Example Running
When does the first band come out?
30
How many bands will be playing tonight?
3
How long does band number 1 play?
15
Band #1 came out at 30 minutes.
How long does band number 2 play?
45
Band #2 came out at 45 minutes.
How long does band number 3 play?
5
Band #3 came out at 90 minutes.
The total set ended at 95 minutes.
Managerial Accounting An Integrative Approach
ISBN: 9780999500491
2nd Edition
Authors: C J Mcnair Connoly, Kenneth Merchant