Question: Create a PYTHON program that allows a user to interactively purchase a number of tickets, then provides an opportunity to enter some (fake) credit card
Create a PYTHON program that allows a user to interactively purchase a number of tickets, then provides an opportunity to enter some (fake) credit card information to pay for the tickets, and finally, prints out a receipt for the user (to the screen, not on paper). Finally, the program should backup all the transactions into a text file
You are free to design and implement the software however you see fit. Here are some requirements that must be incorporated into your program 1. You must display a welcome message when the program starts. At a minimum, this message should contain the name of your program, the name of the program developer and your student ID. 2. The welcome message should also have a row of asterisks at the top and the bottom, just long enough to extend over the text. Hint: Use a For loop for this. 3. When the user goes to purchase tickets, they should be able to purchase a child, adult, senior or concession ticket(s). Each ticket category should cost a different amount; its up to you to choose how much each ticket costs. They should be able to purchase as many tickets (across all categories) as they like 4. When the user goes to finalise their order, the total cost should display on screen. Your program should then ask the user to enter their (fake) credit card details, check the credit card details and, if valid, display a final receipt 5. Finally, the program should backup the transaction into a text file
SAMPLE OUTPUT:
***********************************
WELCOME TO ONLINE RESERVATION SYSTEM
DEVELOPED BY :
STUDENT ID:
*******************************************
PRESS A FOR ADULT, C FOR CHILD AND S FOR SENIOR OR CONCESSION TICKET
ENTER THE NO OF TICKET YOU WISH TO PURCHASE IN THIS CATEGORY:
DO YOU NEED TO PURCHASE MORE TICKET - Y/N
TOTAL AMOUNT=
PAY
ENTER CREDIT CARD DETAILS:
CARD NO:
NAME:
EXPIRY DATE:
CVV NO:
TICKET HAS BEEN CONFIRMED
1 ADULT
1 CHILD
TOTAL AMOUNT PAID :
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
