Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

you must use at least two different arrays - These are, in effect, parallel arrays: One for Adult Meals One for Child Meals Remember to

you must use at least two different arrays - These are, in effect, parallel arrays: One for Adult Meals One for Child Meals Remember to use a "for" loop for each array You should have totals in $ amount for: Adult Meal costs For example: class1; and class2 Overall totals, combining all categories Percentage for the total categories the % amount is your choice; for the program outcome shown below, 45% was used Hints and Suggestions: You can set your own catered meal prices for example, adult meals are $10 You can set how many adults/children meals are sold in each category for example, 3 adult meals sold You can also write the program to ask the user for this input, but this is not required At the end, it prints out the total dollar amount spent on sales for Adult Meals, Children Meals; and then an overall total spent. The percentage is then calculated, which is the charitable donation. Color has been added in this program - both at the top and the bottom; be sure to include color somewhere in your code.

C++

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

4. What did you learn from this role-play?

Answered: 1 week ago

Question

8. How would you explain your decisions to the city council?

Answered: 1 week ago