XYZ electronics store has three different products in their store as Television, Refrigerator, and Washing machine. Crea

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

XYZ electronics store has three different products in their store as Television, Refrigerator, and Washing machine. Crea

Post by answerhappygod »

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"
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply