im doing this assgment.need a solution urgently! Animal Show is organized.
There are 2 sessions for the show, which are 2pm-4pm and 8pm-10pm per day.
There are only 50 tickets available per session per day.
For the show, a ticket for an adult sells for RM10 while for a child of below 12 years of age, the ticket sells for RM5.
When a customer buys a ticket, the cashier would key in the number of adults and number of children. The system would then calculate the total amount to be paid. The system would then print the details and total of the purchase on the screen.
If the total of tickets for a session has reached the capacity (50 tickets), the program would print a warning to the cashier. Your program should be able to print the total amount of sales at the end of the day as a sales report.
these are the things in the coding.The problem is how write the codes using all functions such as if else statements,switch and ext.. I'm new to C++. Can you please guide me a solution?? Currently,im using dev c++ platform. Thanks a lot. Eager to hear from your side. It will be useful in my studies.