Notification texts go here Contact Us Click here

Bnaking Managements projects using C language

Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. int list();
  4. void diposite();
  5. void last();
  6. void transfer();
  7. void withdraw();
  8. void checkDetail();
  9. int TotalAmount=1000,Amount,Amo,Tr,TotalDiposite=0,TotalWith=0;
  10. int TotalTr=0;
  11. int Acc;
  12. char a[50];
  13. void main()
  14. {
  15.     printf("\nEnter your name: ");
  16.     gets(a);
  17.     printf("\nEnter your Acc number: ");
  18.     scanf("%d",&Acc);
  19.     while(1)
  20.  {
  21.   switch(list())
  22.   {
  23.     case 1:
  24.          diposite();
  25.          TotalDiposite+=Amount;
  26.          break;
  27.     case 2:
  28.          withdraw();
  29.          if(Amo<=TotalAmount)
  30.          TotalWith+=Amo;
  31.          break;
  32.     case 3:
  33.          transfer();
  34.          if(Tr<=TotalAmount)
  35.          TotalTr+=Tr;
  36.          break;
  37.     case 4:
  38.          checkDetail();
  39.          break;
  40.     case 5:
  41.          last();
  42.          exit(0);
  43.     default:
  44.          printf("\nIvalid choice: ");
  45.   } //end of switch
  46.  }//end of while
  47. }
  48.  
  49. int list()
  50. {
  51.     int ch;
  52.     printf("\n1. Diposite Amount: ");
  53.     printf("\n2. Withdraw Amount: ");
  54.     printf("\n3. Transfer Amount: ");
  55.     printf("\n4. check Details: ");
  56.     printf("\n5. Exit: ");
  57.     printf("\n Enter your choice : ");
  58.     scanf("%d",&ch);
  59.     return(ch);
  60. }
  61.  
  62. void diposite()
  63. {
  64.     printf("\nEnter the Amount you want to diposite: ");
  65.     scanf("%d",&Amount);
  66.     TotalAmount+=Amount;
  67. }
  68. void withdraw()
  69. {
  70.     printf("\nEnter the Amount you wish to withdraw: ");
  71.     scanf("%d",&Amo);
  72.     if(Amo<=TotalAmount)
  73.     TotalAmount-=Amo;
  74.     else
  75.     printf("\n Less Amount Withdraw is not possible: ");
  76.  
  77. }
  78. void transfer()
  79. {
  80.     printf("\n Enter the amount u want to transfer: ");
  81.     scanf("%d",&Tr);
  82.     if(Tr<=TotalAmount)
  83.     TotalAmount-=Tr;
  84.     else
  85.     printf("\nLess Amount Transfer is not possible: ");
  86. }
  87. void checkDetail()
  88. {
  89.     printf("\nTotal Amount=%d",TotalAmount);
  90.     printf("\nTotal Diposited Amount=%d",TotalDiposite);
  91.     printf("\nTotal Withdraw Amount=%d ",TotalWith);
  92.     printf("\nTotal Transfered Amount=%d",TotalTr);
  93.  
  94. }
  95. void last()
  96. {
  97.     printf("\n****************\n");
  98.     printf("\nYour Name=%s",a);
  99.     printf("\nAccount Number=%d",Acc);
  100.     printf("\n Total Amount=%d",TotalAmount);
  101.     printf("\n Total Diposited Amount=%d",TotalDiposite);
  102.     printf("\n Total withdraw Amount=%d ,TotalWith");
  103.     printf("\nTotal Transfered Amount=%d",TotalTr);
  104.     printf("\n \n*******THANKS**");
  105. }
  106.  

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.