Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C++ program for a museum and show the bill for the cashier. Here is the pricing: Category Price Adjustment Children $15.00 For
Write a C++ program for a museum and show the bill for the cashier. Here is the pricing: Category Price Adjustment Children $15.00 For every 3 children, one is free. This means that for every 3 tickets purchased, the 3th ticket is free. (This is a one statement calculation.) Adult $25.50 The adult cost (not the price) is reduced by $3 if there are more than 4 adults. All groups with more than 25 people or 10 or more children must pay a $15.00 security fee. Add the security fee to the total bill. Only display the security fee if it's not zero. Write a program that prompts the user to enter adults and children, calculate and show a bill for the group. Your program should show the total number of tickets as well. After showing the total bill, prompt the user to enter the cash received and find the change. Your program should verify that the cash entered is enough to pay the bill. If it is not, display a message and request the cash again. You should use a pretest while loop, so the program executes until the user enters -1 for the child ticket value. Add a confirmation number to the receipt. The first number should be 100 and then add 1 for each new receipt.
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