Write a function total that has one parameter - the number of items user purchased in the bulk session. The function first reads tax as an integer and then reads price per pound and number of pounds for each item. The function prints final price for each item and function finds and returns total price paid for all items. Use function final_price to find final price for each item.
Write main that reads number of items user purchased in the bulk session, prints final price for each item and total price paid - use function total in main.
AMC movie theatres have the following ticket prices:
Write a function count_tickets that doesn't have any parameters. The function reads a sequence of positive integers. Each integer is an age of the movie theater visitor. First negative or zero integer will terminate the input. The function returns the number of children tickets sold, the number of adult tickets sold, the number of senior tickets sold, and the total amount paid by all visitors.
Write main to test your function.