You system must then allow the cafe to produce a report at the end of each business day with the following information:
- Determine the total number of transactions (receipts) for that business day
- Determine the total number of customers (both employees who bought stuff and regular patrons) for the day
- determine the total number of non-employee patrons for the day (hint: you can make use of atype check)
- For each receipt:
- If the purchaser is an employee, a 15% employee discount is applied, but only for food and drink items
- If a cat is on a receipt (adoption), no discount is applied
- Determine the total number of adoptions, per shelter
- Produce a list of the unadopted, unsponsored cats staying at the cafe currently
- Produce a list of the sponsored, unadopted cats staying at the cafe
- Produce a list of the top ten selling menu items for that day (exclude cats from this), along with the gross sales of each item
- produce a list of the most popular cats, in order of rank (popularity is judged based on number of sponsorships).
- Whenever a cat is adopted, it should be removed from the cat inventory.
Non Employee customer |
---|
Employee customer |
---|
Output info |
---|