Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using C++ Write a program that prompts the user to enter a movie name, adult ticket price, child ticket price, number of adult tickets sold,
Using C++
Write a program that prompts the user to enter a movie name, adult ticket price, child ticket price, number of adult tickets sold, number of child tickets sold, and percentage of gross amount to be donated to charity. The program should output the following information: Movie name Total number of tickets sold Gross amount Percentage of amount donated Amount donated Net sale Set precision to 2 decimal numbers and format the output as shown in the sample below. Sample input/output: Enter the movie name: Duckey Goes to Mars Enter the price of an adult ticket: 11.5 Enter the price of a child ticket: 8.5 Enter the number of adult tickets sold: 1234 Enter the number of child tickets sold: 256 Enter the percentage of donation: 15 149e Percentage of Gross Amount Donated: Amount Donated: . 15.00% $ 2455.esStep 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