Flight tickets
Create the code which follows this design:
Algorithm
- Initialise ticket costs
- Get quantity of passengers
- Calculate initial cost of booking
- Update cost of booking if bag(s) are added
- Display final cost of booking
Refinements
- 2.1 Get number of adults
- 2.2 Get number of children
Click here for feedback on your answer. If everything goes green then you got it right!
Try more Parson's Problems.