Code:#include <stdio.h> #include <stdlib.h> #include<time.h> struct display{ int month; double interest_rate; } void displays(FILE*displayR); if calculate(); int enterOption(void); int main(); { char userName[20]; FILE*dislay; int options; time_t current=time(NULL); struct tm*t=localtime(¤t); char date[30]; char currTime[30]; strftime(date,sizeof(date),"DATE: %b %d %Y",t); strftime(currTime,sizeof(currTime),"TIME: %H:%M:%S",t); printf("**************************\n\n" "//logo\t\t\t\tWelcome to MSYBank\n\n" "\t\t\t\t\t\t%s\n%s\n\n\n""**************************",date,currTime); printf("Hi, what is your name? "); scanf("%[ A-Z a-z ]s \n",&userName); system("cls"); printf("Welcome to MSYBank, %s !\n",userName); printf("Please select your option: \n"); ifis(display=fopen("display.txt","w"))==NULL) { printf("File could not be opened.\n"); } else { while((options=enterOptions())!=3) { switch(options) { case 1: display(); break; case 2: calculate(); break; case 3: system("cls"); print("TQ for visiting. have a nice day!^^"); default: printf("Incorrect options\n"); break; } } ifclose(display); } return 0; ) void displays(FILE*displayR) { FILE*displayW; struc display={Tenor(months),interestRate}; if((displayW=fopen("displays.txt","w"))==NULL) { printf("File could not be opened.\n"); } else { rewind(displayR); fprintf(displayW,"%-6d%-16lf\n","Tenor","interestRate"); while(!feof(displayR)) { fread(&client, sizeof(struct diplays),1,displayR); if(display!=0) { fprintf(displayW,"%-6d%-16lf\n",Tenor,interestRate); } } fclose(displayW); } } if calculate() { double deposit; int month; if (month ==1&&deposit>=5000) { printf calculate(); } elseif(month>=2&&month<=60&&deposit>500) { printf calculate(); } elseif { printf("invalid input!! Please enter again."); } } int enterOption(void); { menuOptions; printf("Here are your options\n\n" "\tOptions\t\tFunction\n" "\t1\t\tDisplay Interest Rate\n" "\t2\t\tCalculate Interest Earn\n" "\t3\t\tExit\n\n" "Please select your option.\n"); scanf("%d",menuOption); return menuOptions; }