Revenue Growth Analysis (I can't interpret this) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Revenue Growth Analysis (I can't interpret this)

### I don't understand what it's asking for ### 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).

14th Apr 2023, 12:08 AM
Pacifiky
Pacifiky - avatar
2 Answers
+ 3
123-08 is a ticket number. Honestly, it doesn't matter that could be anything. That's the dictionary key. 24 is the value and that's the age. We already know an adult ticket is 20 and a child is 5. It's just figuring out the total sold when child is < 18 the total when child is < input and then the percent difference between the two
14th Apr 2023, 12:42 AM
Bob