- 1

# You are working on a ticketing system.

You are working on a ticketing system. A ticket costs $10. The office is running a discount campaign: each group of 5 people is getting a discount, which is determined by the age of the youngest person in the group. You need to create a program that takes the ages of all 5 people as input and outputs the total price of the tickets. Sample Input: 55 28 15 38 63 Sample Output: 42.5 The youngest age is 15, so the group gets a 15% discount from the total price, which is $50 - 15% = $42.5

2 Respuestas

+ 4

Where is your attempt?

+ 4

This question is even asked by other people also
So please before putting a question, search for the same question in the Q&A and then if you find similar results so you can refer that
you should try not to post questions which are similar to others
https://www.sololearn.com/Discuss/2883450/?ref=app
https://www.sololearn.com/Discuss/2853482/?ref=app