Dec-09-2019, 12:49 PM
Take it by pieces. I don't see where you call that method, so either where you call it get the items you have as parameters and call the function (sender_lname, etc) or don't get the information there and instead put your input statements to get the information in the transferMoney() method and have it called with no arguments. Your choice. You already have the methods for looking up a customer by name, so then use that to locate the record of the sender, deduct the amount from the sender account, locate the receiver same way, add that amount.