XYZ electronics store has three different products in their
store as Television, Refrigerator, and Washing machine. Create a
C++ class item to process the basic details about the electronic
products in the store, such as the name of the product, product
code, product price, and the number of products in stock. Write a
non-member function to help the storekeeper to find the products
whose stock is less than 10.
Input Format:
The first line will contain the number of products n.
For each product enter the following
Name of the product
Product code
Price
Stock in hand
Output Format:
The product names and stock, whose available stock is less than
10,
Boundary Conditions:
n>=3 else "Invalid Input"
XYZ electronics store has three different products in their store as Television, Refrigerator, and Washing machine. Crea
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am