ATM BANKING SYSTEM USING C Language With Source Code

ATM BANKING SYSTEM PROJECT USING C

Introduction: 

ATM uses software applications for performing banking operations, whether you want to withdraw cash, deposit cash or undergo any important fund transfers immediately, it is not exactly convenient to always visit the bank branch and wait in long queues to perform such quick and easy transactions there comes an ATM system that makes these tasks easy.

There are many advantages of an ATM banking system such as 24- hour access to cash, view account balances and mini-statements, transfer funds between accounts, pay your utility bills and can deposit cash, and many more.

This project is designed in such a way that to perform transactions or to make a balance inquiry one should require to enter a Personal Identification Number (PIN) using a C programming language.

Source Code:

Get Discount on Top Educational Courses

Brand NameDiscount InformationCoupon Codes Link
Educative.io20% discount on Educative courses and plans
W3Schools20% discount on W3Schools courses
KodeKloud10% discount on KodeKloud courses and plans
GeeksforGeeks30% discount on GeeksforGeeks courses
Target Test Prep20% discount on Target Test Prep
Coding Ninjas₹5000 discount on Coding Ninjas courses
Skillshare40% discount on Skillshare
DataCamp50% discount on DataCamp
365 Data Science57% discount on 365 Data Science Plans
Get SmarterFlat 20% discount on Get Smarter courses
SmartKeedaFlat 40% discount on SmartKeeda courses
StackSocial20% discount on StackSocial courses
				
					#include<stdio.h> 
#include<windows.h> 
#include<time.h> 

  

void main(){ 

   int pin=9876,option,entered_pin,count=0,amount=1;//functions are defined here 

   float balance=8765; 

   int continue_transaction=1; 

  

   time_t now; 

   time(&now); 

   printf("\n"); 

   printf("\t\t\t\t\t       %s",ctime(&now));//current time and date will be appear at the top  

   printf("\n\t\t\t******************WELCOME TO CODE WITH CURIOUS ATM*******************"); 

  

   while(pin !=entered_pin){ 

     printf("\nPlease enter your pin :"); 

     scanf("%d",&entered_pin); 

     if(entered_pin !=pin){ 

       Beep(500,450); 

       printf("Invalid pin!!!"); 

     } 

     count++; 

     if(count==3 && pin != entered_pin){ 

      exit(0); 

    } 

   } 

    while(continue_transaction !=0){ 

   printf("\n\t\t\t*************Available Transaction************"); 

   printf("\n\n\t\t1.Withdrawl"); 

   printf("\n\t\t2.Deposit"); 

   printf("\n\t\t3.Check Balance"); 

   printf("\n\n\t4.Please select the option :"); 

   scanf("%d",&option); 

   switch(option){ 

  

     case 1: 

  

            printf("\n\t\tEnter the amount : "); 

            scanf("%d",&amount); 

            if(balance< amount){ 

            printf("\n\t Sorry insufficient balance"); 

            amount =1; 

            break; 

        } 

        else{ 

             balance -=amount; 

             printf("\n\t\tYou have withdraw Rs.%d. Your new balance is %.2f",amount,balance); 

             amount=1; 

             break; 

     case 2: 

            printf("\n\t\t Please enter the amount : "); 

            scanf("%d",&amount); 

            balance +=amount; 

            printf("\n\t\tYou have deposited rs.%d. Your new balance is %2f",amount,balance); 

            printf("\n\t\t****************** Thank you for banking with Code with Curious******************"); 

            amount=1 ; 

            break; 

     case 3: 

            printf("\n\t\t Your balance is Rs.%.2f",balance); 

            break; 

    default: 

        Beep(500,450); 

        printf("\n\t\tInvalid Option!!!"); 

  

    } 

   } 

  

    printf("\n\t\tDo you wish to perform another transaction ?Press 1[Yes], 0[No]"); 

    scanf("%d",&continue_transaction); 

  

   } 

}
				
			

Output:

Find More Projects

Tilting Maze Game Using HTML CSS And JavaScript Introduction Hello coders, welcome to another new blog. Today in this article we’ll learn …

Tetris Game Using HTML CSS And JavaScript Introduction Hello coders, welcome to another new blog. Today in this article we’ll learn to …

Catch The Insect Game Using HTML CSS And JavaScript Introduction Hello coders, welcome to another new blog. Today in this article we …

electronics Store website using html CSS and JavaScript Introduction Hello coders, welcome to another new project. As you know our today’s project …

Digital Marketing Agency website Using HTML, CSS and JavaScript Introduction Hello coders, welcome to another new blog. Today in this project we’ll …

Fruit Slicer Game Using HTML CSS And JavaScript Introduction Hey coders, welcome to another new blog. Today in this blog we’ve created …