A Python program for calculating family vacation costs with destination-based # and dynamic discounts. These solutions are part of a university assignment focused on applying fundamental programming concepts.
- Multiple family vacation cost calculation
- Destination options:
- Grand Canyon
- Yellowstone National Park
- Glacier National Park
- Applies tiered discounts for adults and children
- Converts final costs to Malaysian Ringgit (MYR)
Option | Destination | Transportation | Accommodation |
---|---|---|---|
1 | Grand Canyon | USD 200 | USD 1,500 |
2 | Yellowstone National Park | USD 180 | USD 1,700 |
3 | Glacier National Park | USD 220 | USD 1,600 |
- 1 adult: No discount
- 2 adults: 15% discount per adult
- 3+ adults: 25% discount per adult
- Children: 40% discount
- Adults: No discount
- Children: 50% discount
- Python 3.7+
python travel_agency_script.py
- Enter family name
- Select destination (1-3)
- Input number of adults
- Input number of children
- Repeat for multiple families or type 'quit' to finish
Total cost for Smith family: MYR 12,345.67
- User input validation
- Nested dictionaries
- Cost calculation algorithms
- Currency conversion
Improvements and suggestions welcome!
This project is licensed under the MIT License.