Assignment 7 Reports
Due 11:59PM ET on April 5
Part 1 – Populating the model – (40 pts)
Populate the model with the following: a. Business-1.
-
Suppliers - 50.
-
Pick any 30 Suppliers and add 50 Products to
each.
-
Customers - 300.
-
Addorderssothateverycustomerhasfrom1-3
orders.
-
Each order should have up to 10 items.
Implement any classes, methods if you need to.
Part 2 – Reporting Requirements (60 pts)
a. Create a SupplierReport and SupplierSummary classes and add implement a report with the following columns:
- Supplier Name,
- Total Sales,
- Loyalty score (Number of different customers
who
picked suppliers products divided by number of all
customers)
- Average spending per customer (Total sales
divided
by number of different customers)
- Top 5 Sales Score (Total sales to top 5 Customers
divided by total sales)
b. Print the report to the Terminal.
Implement any classes, methods if you need to.