Write a complete Malabo script that functions as a hank account simulator. Be sure to be complete and thorough, keeping in mind all of the syntax details and program flow ideas we have discussed this semester. Please be sure to include comments in your program as mentioned in the grading rubric, and please remember to demonstrate your working code to your instructor before you submit this program for grading. Your program script should accomplish the following objectives: When starting the program, it should ask the user for the starting balance of the account, the annual percentage rate (APR) of interest earned for the account, and the date the account is created. This information should be recorded in the transaction log (discussed below). Once the account is set up, the program should present a user with a menu giving five possible options You can decide how the user selects which option should be performed next, but your program should only accept valid inputs from the menu. The program should return to this menu repeated until the last option is selected. The five menu options are detailed next: The user should be able to make a deposit to the account. Selecting this option should prompt the user to enter the amount of the deposit (make sure it is valid), which should then he added to the account balance. This should be recorded in the transaction log. The user should be able to make a withdrawal from the account Selecting this option should prompt the user to enter the amount of the withdrawal (make sure it is valid), which should be subtracted from the account balance. This should be recorded in the transaction log. Do not allow the user to withdrawal more money than is in the account under any circumstances!!! (You can decide exactly how your program handles this. Does it refuse to do the transaction? Does it allow the user to pull out the current balance in the account leaving a balance of zero? Up to you to decide.) The user should be able to calculate interest earned on the account, using the formula provided below. Any interest earned should be deposited hack into the account. This should be recorded in the transaction log. Only apply interest if the account balance starts out bigger than zero! Interest = Balance times (APR as a decimal) The user should be able to apply a fee to the account Selecting this option should prompt the user for the amount of the fee (make sure it is valid), which should be subtracted from the account balance. This should be recorded in the transaction log. A negative account balance can result from this option! The user should be able to close the account. When this happens, ask the user for the dale live account is being closed. The closing date and the closing balance should be written to the transaction log as well as a \"Thank you for your business\" message. At this time, the program should end. Your program should create a transaction log of everything happening to the account from its creation to its end. Write this transaction log into an output file called \"xactlog.txt\" while your program is running. You are allowed some freedom in style and formatting with this log. but make sure to meet the minimum requirements for each transaction.
clc;
clear all;
name = input(\'what is your name: \', \'s\'); % user types jim without tick marks
name = jim
% At this point, the variable: name, will contain
% whatever value the user types (as a string of characters), in this case \'jim\'
fprintf(\'Main\');
fprintf(\'1.Deposite\ 2.Withdraw\ 3.Interest\ 4.fee the account\ 5.close the account\');
fprintf(\'Choose your kernal:\');
type=input(\'\');
form=input(\'Fill the Deposite form\');
fprintf(\'1.name\ 2. age\ 3.account no:\ 4.bal deposite\ 5.signature\ );
form1=input(\'fill withdraw form\');
fprintf(\'1.name\ 2. age\ 3.account no:\ 4.bal withdraw\ 5.signature\ );
form2=input(\'enter the interest\');
for i=1:n
interest=balance*APRS decimal
end
fprintf(\'interset\ \');
%fee the balance
total=balance-interset;
fprintf(\'total\ \');
%close the account
%there is no bal in account
fprintf(\'close the account\'\');