Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago