Erick has created a Go program that is a simple banking system. It displays a menu that allows you to perform various operations: deposit/withdraw money, display the account balance or exit the program.
Erick has already created the BankAccount struct and written the code to display the program menu and ask for input. Your task is to create three methods to perform the following operations:
Deposit() — To deposit money into the bank account, it should add the amount to the Balance and then print the following message:
Deposited 100.00, your new balance is: 100.00
Withdraw() — To withdraw money from the bank account, it should subtract the amount from the Balance and then print the following message:
Withdrew 100.00, your new balance is: 0.00
Withdraw() method if b.Balance-amount < 0 your program should print the message: "Not enough funds in your bank account, funds:" followed by the current b.Balance and then return. DisplayBalance() — To print the current bank account Balance. It should print the following message and the balance with two decimal points:
Your current balance is: 100.00