hey every one, i have a qestion and i have just one day to answer it ,so i really need your help friends.
here is it
Write a complete C++ program thatcalculates the cost of train ticket as the following,
If the passenger is an adult (i.e. +17 years old) his ticket
costs 150 $,
If the passenger is a kid (i.e. 16~3 years old) his ticket costs 80 $,
If the passenger is a baby (i.e. less than 2 years old) his ticket costs 40 $,
Also, if the passenger wants a meal on the train it cost for the
adult is 25$, 15 $ for the kids meal and the baby meal is for free.
If the passenger has a discount coupon he gets 15% off the total cost.
in this questio i should only use if statment or switch.
I know duoas but i really did my best with it but it dose not run with me and i dont know why , and i solve all my question accept that so that why i said i need your .help,anyway thank you friend for your help