Assignment – Collections – LayeredArchitecture
Problem Statement 1: Create a Class by name com.deloitte.retail.pojo.Product
Problem Statement 2: Declare attributes id, name, typeOfProduct,price and getters and
setters
Problem Statement 3: Create a class com.deloitte.retail. ProductNavigator.
Add 10 products to ArrayList object in addProducts() method.
Name it as productList.
Problem Statement 4: Calculate the average price in computeAveragePrice() method.
Problem Statement 5: Create a class com.deloitte.retail.presentation.MainProduct with
main() method.
Create object of ProductNavigator class in main() method and call the
addProducts() and computeAveragePrice() methods.
==============================================================================
** Strictly follow naming convensions, coding standards and provide the solution as mentioned
above.