You should create customer test ﬁles which cannot be completed by the shop customer want 400 loaves of bread
INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS
The shop CSV should be modiﬁed to also hold the initial cash value for the shop.
Read in customer orders from a CSV ﬁle. – That ﬁle should include all the products they wish to buy and in what quantity. – It should also include their name and their budget.
The shop must be able to process the orders of the customer. – Update the cash in the shop based on money received.
∗ It is important that the state of the shop be consistent.
∗ You should create customer test ﬁles which cannot be completed by the shop e.g. customer want 400 loaves of bread but the shop only has 20, or the customer wants 2 cans of coke but can only aﬀord 1. – Know whether or not the shop can ﬁll an order.
∗ Thrown an appropriate error.
Operate in a live mode, where the user can enter a product by name, specify a quantity, and pay for it. The above described functionality should be completed in C.