Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in C++ and flowchart. Best Friends Dog Rescue is hosting a Movie Charity Event and needs your help capturing what percentage of

Write a program in C++ and flowchart. Best Friends Dog Rescue is hosting a Movie Charity Event and needs your help capturing what percentage of the nights sales will be donated to their rescue group. The program should calculate total cost for the number of movie tickets sold for Adults and Children, as well as Snack Sales. The total combined sales for movie ticket sales and snacks should be calculated; and then the percentage of that total calculated. You must use three different arrays - These are, in effect, parallel arrays: One for Adult Movie Ticket Sales One for Child Movie Ticket Sales One for Snack Sales Remember to use a "for" loop for each array You should have totals in $ amount for: Adult Movie Tickets sold Children Movie Tickets sold Snack Tickets sold Overall totals, combining all 3 categories Percentage for the total 3 categories the % amount is your choice; for the program outcome shown below, 45% was used Hints and Suggestions: You can set your own movie prices for example, adult ticket is $15 You can set how many tickets have been sold in each category for example, 5 adult tickets sold You can also write the program to ask the user for this input, but this is not required 5. At the end, it prints out the total dollar amount spent on sales for Adult Movie Tickets, Children Movie Tickets, and Snack Sales; and then an overall total spent. The percentage is then calculated, so the Rescue Group knows how much money they will receive Here is what the output looks like.

image text in transcribed

Welcome to the Best Friends Dog Rescue Charity Night at the Movies! Ticket Sales for Adults: Adult Ticket Price: $15.5 Adult Ticket Price: $15.5 Adult Ticket Price: $25.0 Adult Ticket Price: $25.0 Adult Ticket Price: $5.0 Adult Ticket Price: $7.5 Total Adult Ticket sales are $93.5. Ticket Sales for Children: Child Ticket Price: $8.5 Child Ticket Price: $12.5 Child Ticket Price: $8.5 Child Ticket Price: $15.5 Total Child Ticket sales are $45.0 Snack Sales: Snack Prices: $5.0 Snack Prices: $7.5 Snack Prices: $5.0 Snack Prices: $8.0 Total Snack Sales are $25.5. Total Ticket Sales are $164.0. The total donation for the Charity Event is $73.8

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions