
cout<<“\nPay the amount to get book the ticket”;
}
else
cout<<“Sorry there’s no bus to the desired destination”;
cin.get();
return 0;
}
OUTPUT
..........NANDED BUS STATION........
................Menu................
1.Bombay
2.Nagpur
3.Pune
4.Amravati
5.Aurangabad
Enter your destination: 4
The ticket cost is: Rs 600
Pay the amount to book the ticket.
Explanation: As can be seen, the program simulates a bus station. We use an if-else-if lad-
der to find out the cost of a ticket to a particular station, if there was a bus to that station. There
was no bus to that station that had cost=0. Finally, if the cost is non-zero, it is printed. The user
is prompted ...