Taking a Vacation

vacation code

Python script for calculating the cost of a vacation.

vacation results

The results of running the python script to calculate vacation.

The focus of this lab was to create a program that calculates the cost of taking a vacation using python script. This program uses predetermined values instead of user input. It uses conditional statements if and elif to decide what values are sent to the function that calculates the cost of the trip. This program was a little tricky to write. It didn’t require any knowledge i didn’t already have, but required understanding of how to implement what I’ve already practiced. This was an inspiring lab that gave an example of a program that can be written that is useful in everyday life .I do look forward to taking what was practiced in this lab to create a program that uses input to calculate something like sales tax or like in this program the cost of going away on holiday.