mainUI.c
- Is supposed to function as the primary interface
- Log-in
- Display products
- Search for a product (?)
- Add to cart
- Display cart
- Proceed to buying
- Status: Unknown
delivery.c
- Is supposed to
- set an address
- fix a time slot
- check availability of delivery van/ delivery facility
- Should proceed to billing
- Status: Working
- Modification needed, ref to ToDo
- Is supposed to
billing.c
- Is supposed to produce a bill...
- And append the purchase details to a purchase-history doc
- Generates a receipt in txt format, and displays on the CLI as well
- Should come back to
mainUI.c
after termination - Status: Working
- All the txt files mentioned sit inside
/accessories
time.txt
(availability of delivery van in a particular slot) can be modifiedpin.txt
... self-explanatory- Search option in
billing.c
is dropped fgets
inbilling.c
is replaced byscanf["%[^\n]s", *string]
- In
mainUI.c
, the attributes of the structure "product"- reorder, i remain unused cart.txt
has a one-time purpose, should be overwritten before every purchase- Max cart size = 10
invoices.txt
contain entire the purchase historyNov__9_2021.txt
is a demo receipt
-
mainUI.c
: addtocart() function should reduce # of available products -
mainUI.c
: a search() function, as it's asked for in the question -
mainUI.c
: (IMPORTANT) A user needs to log-in, using a unique ID. Probably this ID would be asociated to a few address options, aready stored (refer to the next point) -
delivery.c
: address should be set from a list (as the assignment suggests) -
delivery.c
: address to be passed to the billing stage