0% found this document useful (0 votes)
12 views

Assignment - Collections - Layeredarchitecture

The document outlines 5 problems to create classes to represent products and navigate products. It asks to create a Product class with attributes and getters/setters, add 10 products to a list, calculate the average price, and call the methods from a main class.

Uploaded by

Rizer4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Assignment - Collections - Layeredarchitecture

The document outlines 5 problems to create classes to represent products and navigate products. It asks to create a Product class with attributes and getters/setters, add 10 products to a list, calculate the average price, and call the methods from a main class.

Uploaded by

Rizer4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

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.

You might also like