(a) Design a data format to represent each transaction.
(b) Write a program to take a transaction and update the inventory.
(c) If the cost per item is also given write a program to calculate the total inventory values.
I didn't get the problem. I don't know what program should I make and what my program will do or calculate. Your contribution is appreciated for this question ;P