The mini-supermarket already has a list of product names and their corresponding
type (soap, oil, milk, cheese, etc….) included in it initially.
The user menu displays the following operations:
(Hint: Use the function gets to read an array of characters including spaces)
- Insert a product (name, type)
- Display products of (selected) type, i.e. the user select a type and display all
products’ names in this type
- Search product by name (if exist, display its name, and its type)“linear search
- display all products, their names and corresponding type, as they had enterd. - Full Post
No comments:
Post a Comment