so I have a program I'm trying to write that essentially simulates a store. I have to read code in from a file, then give an option to purchase item, return item, make a payment, and check balance. When making a purchase i have to give an option of which item to select from the array that I've saved the file contents in one for the item and another for the price, same for the return. I realize i have to keep a running total when making a purchase or return. The purchase and balance I understand however im having difficulty with functions to make purchases or returns. I apologize for wall of text just need some help, any help would be appreciated.