Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve it in C++ plz Chapter 3: Output Formatting Problem 5: Movie Ticket Sale Write a program that prompts the user to enter a movie

image text in transcribed
solve it in C++ plz
Chapter 3: Output Formatting Problem 5: Movie Ticket Sale 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: nter the movie name: Duckey Goes to Mars nter the price of an adult ticket: 11.5 nter the price of a child ticket: 8.5 nter the number of adult tickets sold: 1234 nter the number of child tickets sold: 256 nter the percentage of donation: 15 ie Name: Duckey Goes to Mars rof Tickets Sold:...$16367.0 s Amount: -....- 1496 15.ee 2455.s centage of Gross Amount Donated: Donated

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

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

Why should an employer be concerned about negligent hiring?

Answered: 1 week ago