1.Take input for boarding place,arriving place and date.
2.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.
3.Take passengers age and gender.
4.If age is less than 13 you have to pay half of the price of the ticket.And if the age is greater than 59 you have to pay 60% of the ticket price.
5. Than display final amount of the ticket,date,passengers(male,female and child count with age),ticket booking confirmation message.
Click Here
rajashree g.s. 0 Newbie Poster
stultuske 1,116 Posting Maven Featured Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.