+ 1
In python data structures can anyone explain me how to get started with the ticket office problem? Would highly appreciate it
2 ответов
+ 2
shifa ,
here is an explanation how it could be done:
the task we have to do is:
- take an integer as input (N)
- calculate what the revenue is by using < 18 as the age for children (1)
- calculate what the revenue is by using < N as the age for children (2)
- compare the both results and calculate the revenue growth in %
to get the results for (1), we have to iterare through the dictionary data and calculate the respective value as a total of all tickets that are sold in this configuration age = 18
to get the results for (2), we have to iterare through the dictionary data and calculate the respective value as a total of all tickets that are sold in this configuration age = N
+ 1
read description again , understand it, follow steps :
if you can't understand anything then you can ask about specific concern.
hope these may helps from search bar..
Try your own solution....
https://www.sololearn.com/discuss/2648585/?ref=app
https://www.sololearn.com/discuss/2615359/?ref=app
https://www.sololearn.com/discuss/2780435/?ref=app
https://www.sololearn.com/discuss/2740997/?ref=app
https://www.sololearn.com/discuss/3050434/?ref=app