Flowchart and pseudocode (C++) of: Movie Selection and Age Verification The Department wants to simulate a simple
Question:
Flowchart and pseudocode (C++) of:
Movie Selection and Age Verification The Department wants to simulate a simple movie ticket booking system.
Your task is to create a program that:
1. Displays a list of movies available (That is 1. "The Matrix" - Rated R; 2. "Star Wars: Episode V - The Empire Strikes Back" - Rated PG; 3. "Inception" - Rated PG-13; 4. "Toy Story" - Rated G; 5. "Crash" - Rated NC-17 ) for the day with their ratings
2. Allows the user to select a movie.
3. Asks the user for their age.
4. Checks if the user meets the age requirement for the movie's rating.
5. If the age requirement is met, the user proceeds to the ticket purchasing process.
6. If the age requirement is not met, displays an error
After the user has selected a movie and their age has been verified for the movie's rating:
- Ticket Pricing:
- Adult Ticket (13+ years): $12.00
- Child Ticket (less than 13 years): $8.00
- Process:
- Ask the user how many adult tickets they wish to purchase.
- Ask the user how many child tickets they wish to purchase.
- Ensure that children are not purchasing tickets for age-inappropriate movies.
- Calculate and display the total cost for the tickets.
- Ask the user the amount they are paying.
- Ensure that the amount paid by the user is greater than or equal to the total ticket cost.
- If the amount paid is less than the total cost, display an error message and quit the program,
- If a valid amount is paid, calculate and display the change to be returned to the user.