help me how to begin to recode my ATM program, that need to be in a system... I don't how to begin.. ATM system must register user, and keep username and password... anyone? give me an idea please... this is my project deadline is on tomorrow, so i work to this as soon as I reach the requirements...
heres my ATM program, not in a system yet..
thank you... i really need help right now, because i was abandoned by my group mates, and they transfer to other section.. so help me i'm begging...Code:#include <stdio.h> #include <conio.h> double amount=10000.00; double dep(double y){ double newaccount; newaccount=amount+y; return newaccount;} double with(double x){ double newaccount; if(x>=4001) printf("The largest amount you can withdraw is 4000"); else if(x>=10001) printf("You exceed to your bank savings"); else newaccount=amount-x; printf("%lf",newaccount); return 0;} void main() { int i=0; double j; clrscr(); printf("\n*******MENU*********\n"); printf("1.Balance Enquiry\n"); printf("2.Deposit\n"); printf("3.Withdraw\n"); printf("4.Exit\n"); printf("Select an item from the menu: "); scanf("%d",&i); while(i<4) { switch(i) { case 1:printf("This is your balance amount: %f",amount); break; case 2:printf("How much would you like to withdraw?"); scanf("%lf",&j); amount = with(j); j=0; printf("This is your balance amount: %f",amount); break; case 3:printf("How much amount do want to withdraw?\n"); scanf("%lf",&j); amount = amount-j; j=0; printf("This is your balance amount: %f",amount); break; } printf("\n*********MENU*********...\n"); printf("1.Balance Enquiry\n"); printf("2.Deposit\n"); printf("3.Withdraw\n"); printf("4.Exit\n"); printf("If you are a first time user please deposit some amount for balance enq uiry.\n"); printf("Select an item from the menu: "); scanf("%d",&i); } getch(); }
thanks you so much...



LinkBack URL
About LinkBacks


