Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Walmart Store System Using a linked list data structure, design and develop a system for Walmart Store. In Walmart Store, there are different aisles. In
Walmart Store System
Using a linked list data structure, design and develop a system for Walmart Store. In Walmart Store,
there are different aisles. In one aisle there are dairy products. In the other there are pulses and
grains. In the third there are bath and cleaning products. In fourth aisle they have ready to eat food
items. In th aisle there are vegetables. Maintain an array of linked lists for aisles. For each aisle,
there is a linked list. The nodes in the linked list are the items in that aisle like the item id
itemname, quantity, expirydate, threshold quantity. Now there is another linked list of bills. When
a user comes to the Walmart store, he should be billed for whatever items he buys. The
corresponding quantity of each item is to be decremented in the main array of linked list of items.
The array of aisles should be sorted according to the aislenumber. Items are sorted by itemid in
each aisle.
Implement the following functions :
Add update item Adds or updates an item in the linked list.
Delete an item Delete the item
Add aisleupdate aisle Adds or updates an aisle
Delete aisle Deletes aisle
Check availability of particular item for particular quantity and within the expiry date.
o Inputs Itemid quantity required for itemid and the expiry date
Function to generate a message when any particular item goes beyond its defined threshold
quantity, so that it can be planned to order it soon.
Function to generate a message on a certain readytoeat item if its expiry is within one
week.
Function to generate a message when certain dairy product is likely to expire within one day.
Merge two aisles in a single aisle. For example, Wallmart wishes to add over the counter
medicine section to the store. So they have less space and want to merge their two aisles,
namely, dairy and vegetables.
Write a function that takes itemid as input and provides a list of items which are more
often bought with the given itemid
Example where this would be useful You are the owner of Walmart. You want to optimise
your business, so you want to do some data mining and find out the patterns in the data.
You want to make a strategic decision as to whether people who buy milk also buy bread
and people who buy bread also buy eggs and so they want to make a decision as to whether
bread, eggs and milk kept together will make it easy for the customers and in turn increase
their sales.
File handling is recommended to be used. The input should be scanned from a file to build the array
of aisles, and items in each aisle with their data like quantity, expiry date, threshold quantity etc.
write the above program in c language with entire functions
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started