Example 1
The price of a airline ticket varies:
1st class is 5 times economy price
Business class is 3 times economy price
Econony class is determined by the destination
Seat sale ticket are 60% of economy ticket
Assuming that the type of ticket is given by user
and the economy price is given by another user
write a program to determine the price of a ticket.
Saturday, February 16, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment