For this assignment, I use the website called Codecademy to calculate the cost for my vacation. I use functions to complete this assignment. In the context of programming, a function is a named sequence of statements that performs a computation. This assignment was a little bit difficult to complete because some of the instructions are confusing, but I was able to complete the assignment and know the total cost for my vacation.
When you define a function you specify the name and the sequence of statements.
Functions are invoked by their name.
Calculating the hotel cost, plane ride cost, and car rental,
Calculating the hotel cost, plane ride cost, and car rental,
Calculating the hotel cost, plane ride cost, and car rental,
Finally, I was able to calculate the total.