I run the planetarium box office. Children under 5 get infree. Kids 12 and under pay $8. Seniors, 65 and over, pay$9. Everybody else pays $14. I want to give it an age andget the ticket price back, and then add up a whole family.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
Age 4: $0.00Age 9: $8.00Age 40: $14.00Age 42: $14.00Age 70: $9.00Family total: $45.00This family is ages 4, 9, 40, 42, and 70. Your six boundary ages are the real test; this sample checks only one of them.
Your requirements list and your program file, named cc-ticket-price.