Lab 3 Assignment Wed
Choose your option. You only need to solve one problem. Option 1 is an easy version of Option 2.
- Option 1(60 points): Write a program that calculates the total cost of amusement park tickets for a
family.
The input: number of family members (integer), full price of the ticket (integer), age of each family member
(integer), tax (integer).
Output: Total price after all discount and taxes are taken in account.
Ticket Price Rules:
- children 0-5 - free
- Elementary school children, age 6 - 10: 50% discount
- Middle school children, age 11 - 13: 25% discount
- High school students, age 14 - 18: 10% discount
- 19 and older - adults, full price
- Option 2(100 points): Write a program
that enters number of families visited the amusement park on specific day, the full price of the ticket(integer),
and
tax (integer), and then for each family the program reads the number of familiy members and age of each family
member. The program calculates the total price for each family and finds the family who paid the lowest price. The
program outputs the lowest price paid.