Homework: C Programming
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.
I. You must use three different arrays - These are, in effect, parallel arrays:
a. One for Adult Movie Ticket Sales
b. One for Child Movie Ticket Sales
c. One for Student Movie Ticket Sales
II. Remember to use a "for" loop for each array
III. You should have totals in $ amount for:
a. Adult Movie Tickets sold
b. Children Movie Tickets sold
c. Student Movie Tickets sold
d. Overall totals, combining all 3 categories
IV. Hints and Suggestions:
a. You can set your own movie prices - for example, adult ticket is $15
b. You can set how many tickets have been sold in each category - for example, 5 adult tickets sold
i. You can also write the program to ask the user for this input, but this is not required
c. 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
Format your homework according to the following formatting requirements:
o The answer should be typed, using Times New Roman font (size 12), double spaced, with one-inch margins on all sides.
o The response also includes a cover page containing the title of the homework, the student's name, the course title, and the date. The cover page is not included in the required page length.
o Also include a reference page. The Citations and references must follow APA format. The reference page is not included in the required page length.