hint.csv 392 B

12345678910
  1. Cell,Formula,Description
  2. A1,=SUM(B1:B10),Total balance
  3. A2,=A1 - C1,Remaining balance
  4. B1,[Input from coin slot],Inserted coin value
  5. C1,[Selected item price],Price of the selected item
  6. D1,=IF(A2>=0; A2; 0),Change to return
  7. E1,=SUM(F1:F10),Total sales
  8. F1,=IF(G1>0; C1; 0),Sale amount for item 1
  9. G1,[Stock for item 1],Current stock of item 1
  10. H1,=G1 - IF(F1>0; 1; 0),Updated stock after dispensing