Question: Description: CSU Conventions wants you to write a Python script to calculate the total cost of a ticket. All convention tickets are $150.00. Exclusive conferences
Description:
CSU Conventions wants you to write a Python script to calculate the total cost of a ticket.
All convention tickets are $150.00.
Exclusive conferences cost $10 per conference.
Merchandise costs $25 per item.
Sales tax is applied to the subtotal and is 8% (multiply the subtotal by 0.08).
Requirements:
Write a Python script (with comments) (and save it as LastnameFirstnameIP2.py file) that has a main() function. Have that main() function call another function to display a welcome to the customer and displays the prices (see examples). In the main() function, ask the user how many exclusive conferences they will attend and how much merchandise they want to buy. Write another function to calculate the cost for exclusive conferences and yet another one to calculate the merchandise cost. Display the subtotal in main() and then have another function calculate the sales tax (based on the subtotal). Round all dollar amounts to 2 decimal places.
Only function definitions and the call to main() can be un-indented. This means, no global code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
