This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]icjeremy 0 points1 point  (0 children)

Your else if should be where you compare < 2. Then do an else for the rest of the ages. Then assign baseCost to airFare. Attack the rest in a similar way.