An open API service indexing awesome lists of open source software.

https://github.com/nurulashraf/python-travel-cost-calculator

Python Programming - Travel Cost Calculator
https://github.com/nurulashraf/python-travel-cost-calculator

academic-assignments cost-calculator currency-conversion discount-algorithms family-budgeting object-oriented-programming python python-projects travel-planning-tools vacation-planning

Last synced: 3 months ago
JSON representation

Python Programming - Travel Cost Calculator

Awesome Lists containing this project

README

        

# SkyHigh Adventures Travel Cost Calculator

## Overview
A Python program for calculating family vacation costs with destination-based pricing and dynamic discounts. These solutions are part of a university assignment focused on applying fundamental programming concepts.

## Features
- Multiple family vacation cost calculation
- Destination options:
1. Grand Canyon
2. Yellowstone National Park
3. Glacier National Park
- Applies tiered discounts for adults and children
- Converts final costs to Malaysian Ringgit (MYR)

## Destinations
| 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 |

## Discount Structure
### Accommodation Discounts
- 1 adult: No discount
- 2 adults: 15% discount per adult
- 3+ adults: 25% discount per adult
- Children: 40% discount

### Transportation Discounts
- Adults: No discount
- Children: 50% discount

## Prerequisites
- Python 3.7+

## Usage
```bash
python travel_agency_script.py
```

1. Enter family name
2. Select destination (1-3)
3. Input number of adults
4. Input number of children
5. Repeat for multiple families or type 'quit' to finish

## Sample Output
```
Total cost for Smith family: MYR 12,345.67
```

## Key Concepts
- User input validation
- Nested dictionaries
- Cost calculation algorithms
- Currency conversion

## Contributing
Improvements and suggestions welcome!

## License
This project is licensed under the [MIT License](LICENSE).