Consider the products in the Departmental Store. Each product has product Id, product Name, product Unit price etc. Perform the following operations with Item details in the Departmental Store. i) Search the item by the item it. ii) List the items which are less than Rs. 100 /= iii. Sort the items by the item price and display all the items.Â
Create a class Departmental_Store.
Declare a variables product_Id as an integer, product_Name as a string,
product_Unit and price as integers. Theses variables should be
members of the Departmental_Store.
Create a method inside the Departmental_Store that returns an item if it's less than
Rs. 100/=
Create a method that takes an array of items and sort the elements.
Create a method that takes an item and an array and then returns the item if available
inside the array.
Comments
Leave a comment