0

Please, can someone explain this project to me. I could not make sense of it

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).

28th Jun 2021, 2:42 PM
Godfred Opintan
Godfred Opintan - avatar
2 Answers
0
provide your attempt to get helped in debugging your code: we are not free code providers ;P
28th Jun 2021, 7:00 PM
visph
visph - avatar
0
First calculating the original price with < 18*5 and >= 18*20. Then with the changed ageboarder And last the difference in %. Thats all
29th Jun 2021, 8:10 AM
Angela
Angela - avatar