Question: Write a Python script ( with comments ) ( and save it as LastnameFirstnameIP 2 . py file ) that has a main ( )

Write a Python script
(
with comments
)(
and save it as LastnameFirstnameIP
2
.
py file
)
that has a main
()
function. Have that main
()
function call another function to display a welcome to the customer. In the main
()
function, asks the user how many tickets they need and how many bags they have. Write another function to calculate the cost for the tickets and another function to calculate the checked bags cost, and call it from main
()
.
You should have another function that calculates their drink order. Also, there is a function that should takes the subtotal and multiply it by
1.08
then return the total to the main
()
.
Display the subtotal in main
()
,
as well as the total with tax. Round all dollar amounts to
2
decimal places. You should have a total of
5
helper functions, and
1
main function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!