//Member Methods (Can Do) //This method will be the main logic for a customer to retrieve coins form their wallet. //Takes in the selected can for price reference //Will need to get user input for coins they would like to add. //When all is said and done this method will return a list of coin objects that the customer will use a payment for their soda. public List <Coin> GatherCoinsFromWallet(Can selectedCan) { List <Coin> payment = new List <Coin>(); string userInput; Coin coin; // Display contents of wallet once wallet.CoinsInWallet(); do { userInput = UserInterface.CoinSelection(selectedCan, payment); if (userInput == "Reset") { AddCoinsIntoWallet(payment, false); payment = new List <Coin>(); } else if (userInput != "Done") { coin = GetCoinFromWallet(userInput); if (coin != null) { payment.Add(coin); } else { UserInterface.WaitToContinue("There are no more " + userInput + "s left in the wallet!"); } } }while (userInput != "Done"); return(payment); }