Write a program and flowchart, and include a snippet of your program running.ECPI has rented a Cruise Boat for its upcoming graduating class! You work at ECPI, and have been asked to manage the reservations for students and their families. You need to write a program that tracks the ages of at least 2 students and their families; as well as the meal plans they have selected. The program will achieve the following:
- Track the ages of at least 2 parties – Student and family member(s
- We need to capture ages, to know what each family member can participate in
- Based off the age, the price of the ticket per guest. Sum up the cost of tickets per family. Example, $1000/adults, $500/child, $850/Seniors
- Track the meal plans they have selected per party
- Each family/party can select a meal plan per day; and your program must track those costs
- Once you have included the Meal Plans, and the prices:
- Calculate the total cost for the Meal Plans selected
- And then the total cost of both meal plans
Instructions
The program you write should include these components at a minimum. Remember though: Get creative, and feel free to add different components that you feel are applicable in a Cruise Reservation program.
- You must have at least two different arrays – These are, in effect, parallel arrays:
- One for each Family/Party capturing the ages of every person in the reservation
- Minimum: 4 Families
- One for each Meal Plan Options selected
- Each family should have a meal plan included
- Meal Plans can be, for example, breakfast, lunch and supper and should include just the prices for each one
- create and display a menu to see choices and prices
- Each family should have a meal plan included
- ** Please note:
- The image below does not reflect the menu or the ticket cost
- i. The arrays are for two families; and two meal plans, including the prices for each of the meals chosen
- One for each Family/Party capturing the ages of every person in the reservation
- Remember to use a “for” loop for each array
- You should have Totals that calculates the totals for each family meal plan
- Because you will have at 4 Parties/Families, all should have their own price totals; and then also a total for the meal plans reserved and ticketing
- Hints and Suggestions:
- You can set your own book prices – for example, see the prices in the example below
- You can set how many Meal Plans included for each section
- 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 totals for each section
- The very last total of all Meal Plans and ticket totals should be printed in a different color – so it really stands out