Project of ATM Banking System in C


#include
#include
char x;
int pin, repeat, menu;
int withdraw, deposit, transfer, amount;
main()


{ clrscr();
gotoxy(20,1);printf(":--------------------------------------:\n");
gotoxy(20,2);printf(": Welcome to ATM Banking System:\n");
gotoxy(20,3);printf(": Created by:\n");
gotoxy(20,4);printf(": ivan john Navasca:\n");
gotoxy(20,5);printf(": :\n");
gotoxy(20,6);printf(": Enter your PIN -->:\n");
gotoxy(20,7);printf(":--------------------------------------:\n");
gotoxy(40,6);
scanf(" %d",&pin);
if (pin==1234)
{printf("access granted");}
else
{exit();}
Loop:


{clrscr();
printf(":-------------------------------------------:\n");
printf(": Choose your Transaction :\n");
printf("::\n");
printf(": 1 Inquiry Balance :\n");
printf(": 2 Withdraw:\n");
printf(": 3 Deposit :\n");
printf(": 4 Transfer Fund:\n");
printf(": 5 Exit:\n");
printf(": -->:\n");
printf(":-------------------------------------------:\n");
gotoxy(6,9);
scanf(" %d",&menu);
printf("\n\n");
switch(menu)


{
case 1:{printf("Your balance %d\n\n",amount);
printf("Another transaction? y or n?: ");
scanf(" %c",&x);
if((x == 'y')||(x== 'Y'))


{
goto Loop;
}
else if((x =='n')||(x== 'N'))


{
printf("\nThank You for Banking");
getch();
exit();
}
break;}
case 2:{if(amount==0)
{printf("You have an Isuficient Fund\nPress Enter");
getch();
goto Loop;
}
else

{
printf("Your Balance %d\n\n",amount);
printf("Enter Amount to Withdraw: ");
scanf("%d",&withdraw);
amount = amount - withdraw;
printf("\nYour Current Balance %d\n\n",amount);
printf("Another Transaction? y or n : ");
scanf(" %c",&x);
if((x =='y')||(x=='Y'))


{
goto Loop;
}
else if ((x =='n')||(x=='N'))


{
printf("\nThank You for Banking");
getch();
exit();
} }
break;}
case 3:{printf("Your Balance %d\n",amount);
printf("\nEnter Amount to Deposit: ");
scanf("%d",&deposit);
amount= amount + deposit;
printf("\nYour Current Balance %d\n",amount);
printf("Another Transaction? y or n: ");
scanf(" %c",&x);
if ((x =='y')||(x=='Y'))


{
goto Loop;
}
else if ((x =='n')||(x=='N'))


{
printf("\n\nThank You for Banking");
getch();
exit();
}
break;}
case 4:{printf("Your Balance %d\n",amount);
printf("\nEnter Amount to Transfer: ");
scanf(" %d",&transfer);
amount = amount - transfer;
printf("\nYour Current Balance %d",amount);
printf("\n\nAnother Transaction? y or n: ");
scanf(" %c",&x);
if ((x =='y')||(x=='Y'))


{
goto Loop;
}
else if ((x =='n')||(x=='N'))


{
printf("Thank You for Banking");
getch();
exit();
}
break;}
case 5:{printf("You Want to Exit? y or n: ");
scanf(" %c",&x);
if ((x=='y')||(x=='Y'))


{
printf("\n\nThank You & Come Again");
getch();
exit();
}
else if ((x =='n')||(x=='N'))


{
goto Loop;
}
break;}
default:
exit();
}
}

while(repeat);
getch();
}





Related Links :

12 comments:

  1. it is truely work in c language?

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. it works. just edit some commands. this is actually designed in turbo c. so just edit the commands like the clrs.

    ReplyDelete
  4. it works properlt in broadland turvo c++....
    change the code clrscr to system(cls) it works

    ReplyDelete
  5. im using turbo c . . . its says declaration syntax error in "main void" . . what else is missing?

    ReplyDelete
  6. please e-mail me at tri_edge_182@yahoo.com . . . thank you!

    ReplyDelete
  7. ACTUALLY THIS PROGRAM WORKS....JUST COPY & PASTE IN NOTEPAD AND THEN OPEN WITH C THAT U R USING TURBO,BORLAND ANYTHING BUT DONT COPY LAST LINE OF THE PROGRAM"(/CONIO.H AND /STDIO.H)" AT THE END OF THE PROGRAM.

    ReplyDelete
  8. http://informaniaticos.blogspot.com

    ReplyDelete
  9. nice... i love it... how easily things are used to depict the function of such a modern technique...!!!

    ReplyDelete
  10. i need a point of cash system... which i will be using for a certain programs such as atm's too...

    ReplyDelete
  11. there are xo many errors!!!

    ReplyDelete


If you face any Problem in viewing code such as Incomplete "For Loops" or "Incorrect greater than or smaller" than equal to signs then please collect from My Web Site CLICK HERE


More Useful Topics...

 

History Of C..

In the beginning was Charles Babbage and his Analytical Engine, a machine
he built in 1822 that could be programmed to carry out different computations.
Move forward more than 100 years, where the U.S. government in
1942 used concepts from Babbage’s engine to create the ENIAC, the first
modern computer.
Meanwhile, over at the AT&T Bell Labs, in 1972 Dennis Ritchie was working
with two languages: B (for Bell) and BCPL (Basic Combined Programming
Language). Inspired by Pascal, Mr. Ritchie developed the C programming
language.

My 1st Program...


#include
#include
void main ()
{
clrscr ();
printf ("\n\n\n\n");
printf ("\t\t\t*******Pankaj *******\n");
printf ("\t\t\t********************************\n");
printf ("\t\t\t\"Life is Good...\"\n");
printf ("\t\t\t********************************");
getch ();
}

Next Step...


#include
#include

void main ()
{
clrscr ();
printf ("\n\n\n\n\n\n\n\n");
printf ("\t\t\t --------------------------- \n\n");

printf ("\t\t\t | IGCT, Info Computers, INDIA | \n\n");
printf ("\t\t\t --------------------------- ");

getch ();

}

Hits!!!