- (pg.2) When choice is 2 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 Any kid (Y/N) :N Output Total Three persons of ages 25,14 and kid Total amount to be paid = Rs.60
Java program please help
Answers
Answered by
0
Answer:
whehiemekeo
Explanation:
ehe
hdisiejeie73jeje
Similar questions