A computerised ticket counter of the metro rail station charges for each ride at the following rates
Age Amount
18 years and above Rs.35 5 years to less than 18 years Rs.25 Less than 5 years No charges Write a program to accept a number of persons, age of each person and also information about accompanying kid in (Y or N) in character form. Print the output including number of persons, age of each person and total amount to be paid as fair on above criteria. The input and output should be displayed in the given format
Eg : Input
Number of persons :2
Age of first person :25
Age of second person :14
Age kid(Y/N) : N
output
Total Three persons of ages 25,14 and kid
Total amount to be paid = rs.60/-
Answers
Answered by
0
Explanation:
didn't understand what you are asking
Similar questions