Answered step by step
Verified Expert Solution
Link Copied!

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 5th 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,
item_name, quantity, expiry_date, 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 aisle_number. Items are sorted by item_id 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 aisle/update 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 Item_id, quantity required for item_id 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 ready-to-eat 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 item_id as input and provides a list of items which are more
often bought with the given item_id.
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago