Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Instructions: Please create a C++ program to solve the following problem. Submit electronic (Canvas Dropbox) copies of your program source code and two or more
Instructions: Please create a C++ program to solve the following problem. Submit electronic (Canvas Dropbox) copies of your program source code and two or more sample runs to me by the deadline. Late submissions will not be accepted. Documentation requirements follow the problem specification. 1. Write a C++ program that processes a customer's order for tickets to a Phillies game. The program begins by welcoming the customer to Citizens Bank Park. It then prompts the customer to select a game to attend from a menu of 4 options. If the customer enters an invalid choice, the program displays an error message, then prompts the customer to enter a valid choice until s/he does so. The program next prompts the customer to select a seating location from a second menu of 4 options. As before, if the customer enters an invalid choice, the program displays an error message, then prompts the customer to enter a valid choice until s/he does so. Finally, the program asks the customer to specify how many tickets s/he wishes to purchase. If the customer enters 0 (zero) or a negative number, the program again displays an error message and prompts the customer to enter a valid number until s/he does so. Once all input has been validated, the program calculates the total cost of the tickets and displays it as currency (preceded by a dollar sign and rounded to two decimal places). The program ends by thanking the customer for his/her purchase. As usual, your program output should resemble the sample runs at the end of this document. References: Chapter 5.3 -Using the while Loop for Input Validation (Program Pr5-5.cpp demonstrates using a while loop for input validation.)
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