# Explain please

Please explain this question in simple form. I do not want answer. Only explain, not answer code You are analyzing sales data from a ticket office. The ticket for an adult is $20, while the ticket for a child under 18 is $5. The data you are given is in a dictionary format, where the keys are the sold ticket numbers, and the values are the customer ages. For example, "123-08": 24 means that the ticket was bought a 24 year old. Your goal is to calculate how much more money the office would make if it would change the ticket discount age to the given input. So, your program needs to take an integer as input and output the percentage of revenue growth, if the discount was given to people under that age. For example, if the office made $15000 with the original discount age, and would make $18000 with 14 as the discount age, then the growth would be ((18000-15000)/15000)*100 = 20% So, for the input 14, your program should output 20. The output should be an integer (use int() to convert the result).

1/14/2022 9:57:39 AM

Mustafa Ansari5 Answers

New AnswerMustafa Ansari , 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 difference in % to get the results for (1), we have to iterare through the dictionary data (values) 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 (values) and calculate the respective value as a total of all tickets that are sold in this configuration age = N

Mustafa Ansari , can you please mention the tutorial name and the exercise number? thanks!

Heres my take: Current ticket prices: Adult: $20 Child: $5 A person is considered a child if he is younger than 18 years old. If the age of people that are considered a child is changed, what is the % increase in money received. E.g. Input: 14 People who are between 15 to 18 years old are no longer considered children and thus not given the discounted child prices. The money received(revenue) is increased as discounted price is given to lesser people. Therefore calculate the % increase in money received.