I need serious help with the program I am writing. Here are the requirements.
Its bank account program. The program asks the user for the amount deposited for the month.
2. It asks the user for the amount withdrawn for the month.
3. It calculates the amount of monthly interest. (the monthly intererst rate is the annual rate divided by twelve)
4. at the end of each iteration, it displays the ending balancce, the total amount of deposits, total amount of withdrawals, and total interest earned.
I am a beginner programmer who doesnt have a good working knowledge of coding. What I have so far is below:
Code:
#include <stdio.h>
void main ( )
{
int Month;
double Total = 0.0;
int Count=0;
float amount;
int withdrawal;
printf("For how many months do you have savings account? \n");
scanf("%d", & Month);
while (Count++<Month)
printf("Enter the amount deposited for Month %d: ", Count);
scanf("%d", & amount);
if ((amount,-1)==0);
printf("Amount should be subtracted from balance.");
printf("Enter amount withdrawn from savings account? \n");
scanf("%f", & amount);
}
Any help that can be offered would be greatly appreciated. I am not asking for anyone to write the program for me, I just need help getting the part I have working and completing step3. Thanks