Reference no: EM132396213
Write a program and a flowchart.
The program should calculate the total cost for the number of movie tickets sold for Adults, Children, and Students; and then calculating the total of combined sales for all 3 categories.
Then, it asks for customer numbers and sales by customer. In the end, it prints out the customer number, the customer sales, and then the total sales and average sales.
1. You must use three different arrays - These are, in effect, parallel arrays:
1. One for Adult Movie Ticket Sales
2. One for Child Movie Ticket Sales
3. One for Student Movie Ticket Sales
2. Remember to use a "for" loop for each array
3. You should have totals in $ amount for:
1. Adult Movie Tickets sold
2. Children Movie Tickets sold
3. Student Movie Tickets sold
4. Overall totals, combining all 3 categories
4. Hints and Suggestions:
1. You can set your own movie prices - for example, adult ticket is $15
2. You can set how many tickets have been sold in each category - for example, 5 adult tickets sold
3. 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 Movie Tickets, Children Movie Tickets, and Student Movie Tickets; and then an overall total spent.
Attachment:- calculate the total cost for the number of movie tickets.rar