Question: I need to use at least two different arrays #include - These are, in effect, parallel arrays: One for Adult Meals One for Child Meals

  • I need to use at least two different arrays
  • #include
  • - 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.
  • I need to use at least two different arrays #include - These

Welcome to the Family Dinner Catering Service Meal Sales for Adults: Adult Catered Meal Prices: $10.0 Adult Catered Meal Prices: $10.0 Adult Catered Meal Prices: $15.0 Adult Catered Meal Prices: $7.5 Total Adult Catered Meal Prices are $42.5. Meal Sales for Children: Child Catered Meal Prices: $7.5 Child Catered Meal Prices: $7.5 Child Catered Meal Prices: $8.5 Total Child Ticket sales are $23.5 Total Cost for Catered Meals are $66.0. The total donation for the Charity is $29.7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!