Question: 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

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 movie tickets. The program begins by welcoming the customer to AMC's online movie ticket buying service. It then prompts the customer to enter the information requested: name of movie, number of adult tickets, number of senior tickets, and number of child tickets. (Please note that it is acceptable for the customer to enter 0 (zero) for number of tickets.) Finally, 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). Your program output should resemble the sample runs at the end of this document. Notes: You will need to use the getline function to read movie names that contain spaces. To do so, create a variable of type string (e.g., string movieName) and use the following code to read the movie name: getline (cin, movieName); Declare the variables that store number of tickets as type int(e.g., int numAdult). Declare the variable that stores the total cost as type double (e.g., double totalCost). To multiply values in CH, use the ***" operator. To add values, use the "P" operator. To display the total cost rounded to two decimal places, place the following cout statement before the cout statement that displays it. cout #include . Documentation Requirements: 1) Each program source code file must have a header at the beginning of the program containing the following: Name of author, PSU e-mail address of author, name of course, assignment number and due date, name of file, purpose of program, compiler and operating system used, references Example: /* Author: Wanda Kunkle E-mail: wmk12@psu.edu Course: CMPSC 121 Assignment: Lab 2 Due date: 2/5/2021 File: MovieTicket Service.cpp Purpose: This program processes a customer's order for movie tickets. Compiler: MS Visual Studio Community 2019 Operating system: MS Windows 10 Home References: Class demo programs (include any Web page references here) */ Sample run #1 (User enters movie name and positive values for all of the different ticket categories.): 39 Microsoft Visual Studio Debug Console welcome to AMC's 2021 online movie ticket buying service! Please enter the information requested and we will process your order. What movie would you like to see today? Wonder Woman 1984 How many tickets of each of the following types do you want? Adult ($11.50): 2 Senior ($9.00): 1 Child ($8.50): 1 Your total cost is: $40.50 Thank you for using AMC's 2021 online movie ticket buying service! Wenn State Harrisburg Spring 2021\CMPSC 21\Lab Projects\Lab 2\Lab_2_solution\Debu Press any key to close this window Sample run #2 (User enters movie name and positive values for 2 of the different ticket categories.): A Microsoft Visual Studio Debug Conte Welcome to AMC's 2021 online movie ticket buying, service! Please enter the information requested and we will process your order. what movie would you like to see today? Supernova How many tickets of each of the following types do you want? Adult ($11.50): 2 Senior ($9.00): 0 Child ($8.50): 1 Your total cost is: $31.50 Sample run #2 (User enters movie name and positive values for 2 of the different ticket categories.): Microsoft Visual Studio Debug Console Welcome to AMC's 2021 online movie ticket buying, service! Please enter the information requested and we will process your order. what movie would you like to see today? Supernova How many tickets of each of the following types do you want? Adult ($11.50): 2 Senior ($9.00): 0 Child ($8.50): 1 Your total cost is: $31.50 Thank you for using AMC's 2021 online movie ticket buying service! enn State Warrisburg\Spring. 3921\CMPSC 121 ab projects\Lab 2\lab_2_Solution\debul Press any key to close this window

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!