Take input for boarding place,arriving place and date
Date validation for 120 days(if date is more than 120 days you are not able to book the ticket).if days are less than 120 days then ask for the count of passengers
Take passengers age and gender
If age is less than 13 you have to pay half of the price of the ticket.And if age is greater than 59 you have to pay 60% of the ticket price
Then display final amount of the ticket,date,passengers(male,female and child count with age),ticket booking confirmation message
The answer to the question is available in the PDF file https://assignmentexpert.com/https://assignmentexpert.com/homework-answers/programming-answer-53153.pdf
Comments
Leave a comment