Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this question you are building a ticket purchasing system Store following user information's in variables. Come up with some your own values for below
In this question you are building a ticket purchasing system Store following user information's in variables. Come up with some your own values for below information. Now consider this information are true customer information which are in a Database. User Name Password Credit card number Credit card cvv number Ask customer to enter username and password to log in. Then try to validate user entered user name and password with above stored username and password values If username and password is incorrect print a message saying that "User name and password combination is incorrect and try again.". Program should let user enter their usename and password again and again for three times if values are incorrect If user couldn't enter username and password accurate in all three times, display a message saying that user account is locked and contact customer service via 210-854 7512. Program should not let user enter username and password anymore until close/ exit and restart the program If user entered the correct username and password during one of the three attempts Let user log in to the application displaying the message that "Welcome to ticket purchase system". IV. V. Store below destinations and prices in variables 1. San Antonio 10.50$ 2. Austin 15.30$ 3. Dallas 20.72 4. Huston 25.84$ 5. El Paso 30.87$ VI Now display below destination list for user asking user to pick a destination. 1. San Antonio 2. Austin 3. Dallas 4. Huston 5. El Paso vi. Ask user to enter destination number. Store destination number and store in a variable. vii Ask user to enter credit card number and cvw number. Then validate this two values ix. Now display the price and ask customer to pay using credit card. against values you have stored In the beggining. If value combination is incorrect, let user re-enter again and again three times till combination is correct. If all three times are incorrect. Ask user to contact customer service via above customer service number. x. If values are correct print customer ticket in following format. Example: Customer purchased a ticket to Austin
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started