hey can some 1 please help me out am new to c++ having multiple errors on this code
if you could assist
thankx
#include<stdio.h>
void mainmenu();
void withdrawcash ();
void cashtransfer();
void depositcash ();
void displaycash();
void normalcash ();
void balance ();
void username();
//char login[16]=’martin ’;
int fcash,famount;
int password=12345, account=10023;
int account1;
char x;
int main()
{
printf("Welcome to ATM Banking System: \n");
mainmenu();
withdrawcash ();
cashtransfer ();
depositcash ();
balance ();
fcash;
normalcash ();
username();
}
void username()
{
printf("Welcome to ATM Banking System:\n");
printf("Enter Username:\n ");
//scanf("%s",&username);
printf("Enter Password\n");
//scanf("%s",&password);
}
void mainmenu()
{
printf("Welcome to ATM Banking System: \n");
printf("please select 1 to Withdraw Cash\n");
printf("please select 2 for Cash Transfer \n");
printf("please select 3 to Deposit Cash\n");
printf("please select 4 for Balance Inquiry \n");
printf("please select 5 to Exit\n");
printf("\nEnter choice:");
//scanf("%d",&choice);
}
void withdrawcash()
{
printf("\nWITHDRAW MENU");
printf("\n please select 1 for FAST CASH");
printf("\n please select 2 for NORMAL CASH");
printf("Please select a mode of withdrawal: ");
scanf("%d",&withdrawcash);
{
printf("please select 1 for ksh500\n");
printf("please select 2 for ksh1000 n");
printf("please select 3 for ksh2000\n");
printf("please select 4 for ksh5000\n");
printf("please select 5 for ksh10000\n");
printf("please select 6 for ksh15000\n");
printf("please select 7 for ksh20000\n");
printf("------------------------\n");
printf("Select one of the denominations of money: ");
scanf("%d",&fcash);
if(fcash==1)
{
famount=500;
}
else if(fcash=2)
{
famount = 1000;
}
else if(fcash=3)
{
famount=2000;
}
else if(fcash==4)
{
famount=5000;
}
else if(fcash==5)
{
famount=10000;
}
else if(fcash==6)
{
famount=15000;
}
else if(fcash==7)
{
famount=20000;
}
printf("\n Are you sure you want to withdraw kshs. %d [y/n]: ",famount);
scanf("%c",&x);
}
}
void normalcash()
{
printf("\n---------------");
printf("\nYour current balance is kshs %f",balance);
printf("\nPlease enter withdraw amount:");
scanf("%d",&withdrawcash);
if(withdrawcash <= balance && withdrawcash >= 0)
{
printf("\nYou have withdrawn Kshs %d \nyour curent balance is %d");
}
else
{
printf("\nError: You have insufficient funds\n");
}
printf("\npress any key to continue:\n");
}
void cashtransfer()
{
printf("\nCASH TRANSFER MENU");
printf("\n--------------");
printf("\nYour Current Balance is kshs %f",balance);
printf("\nPlease enter amount in multiples of 500: ");
scanf("%d",&cashtransfer);
printf("\n Enter the account number to which you want to transfer: ");
scanf("%d",& account);
printf("\n This account is held by Usman Ismail, if this information is correct please re-enter the account number : ");
scanf("%d",&account1);
printf("\nTransaction Confirmed.\n");
printf("\nYour Current Balance is kshs %d");
printf("\npress any key to continue:\n");
}
void depositcash()
{
printf("\nDEPOSIT MENU");
printf("\n--------------");
printf("\nPlease enter deposit amount:");
scanf("%d",&depositcash);
if(depositcash > 0 )
{
printf("\nYou have deposited %d");
printf("\nYour new acount balance is Kshs. %d\n\npress any key to continue:");
}
else
{
printf("\nError:you can not deposit less than 0" );
printf("\n\nPress any key to continue:");
}
}
void balance()
{
printf("\nBALANCE INQUIRY MENU");
printf("\nYour account balance is kshs %d",balance);
printf("\nPress any key to continue:");
}
void exit()
{
printf("Thank you for using this ATM.\n");
}