PASSENGER PROGRAM

CREATE A PROGRAM FOR PASSENGER FARE. THE SYSTEM MUST ASK THE USER TO ENTER AGE OF PASSENGER. IF AGE IS BELOW 12YEARS OLD, THERE IS A 10% DISCOUNT, ELSE 5% DISCOUNT. THE USER WILL NOW ENTER THE DESTINATION CODE TO COMPUTE THE FARE.

CODE FARE
CHINA 2500
JAPAN 3000

THE SYSTEM WILL DISPLAY THE AGE, DISCOUNT AND DISCOUNTED FARE..

GUYS PLEASE HELP, I NEED THE PROGRAM FOR THIS, AND THE ALGORITHM.

I HOPE U CAN HELP ME WITH THIS.. THANKS.. THANKS THANKS..
We don't do your homework for you. You must try and solve it yourself. If you get stuck on a section of your code then post it here, explain what the problem is and someone might be able to help you. But first you must make an attempt to solve it yourself.
ouch.. that's sad to hear, ok,, but even though i cannot really do it, can you still help me with this "ajh32" .. :( i'm still a first year college student, i am really a newbie in programming.
How long have you been learning to program in C++?
only this year sir, i started last September.. i hope you can help me, my course is software engineering..
Have you learnt anything in that time? How old are you?
Your first step would be to get input from the user:
http://www.cplusplus.com/doc/tutorial/basic_io/

then do the checks on the user's age:
http://www.cplusplus.com/doc/tutorial/control/

Last edited on
not that really sir, im sorry, but i am not really that expert in programming, all i know is just the basics, like: structure of a program, the one you display your name.. and variables and data types, and constants.. its all the basics sir. that's all i know.. :(
have a read at those links i've posted.
thanks.. mutexe.. :)
Topic archived. No new replies allowed.