C++ Banking codes(ATM)

View previous topic View next topic Go down

C++ Banking codes(ATM)

Post by romgatchalian on Sat Nov 21, 2009 1:55 pm

ATM Banking Project for your projects if you have


here's codes:
Spoiler:

#include<stdio.h>
#include<conio.h>
#define p printf
#define s scanf

char choice;
float bal, depo, withdraw;


/*functions for deposit*/
deposit()
{
p("Enter deposit amount: ");
s("%f",&depo);
bal = bal + depo;
p("%2.f was added to your account..",depo);
getch();
return main();
}


/*functions for withdrawal*/
withdrawal()
{
p("Enter withdrawal amount: ");
s("%f",&withdraw);
if(withdraw>bal)
{
p("\nMaximum withdrawal should be greater than. %2.f ",bal);
getch();
return main();
}
bal = bal - withdraw;
p("balance = %2.f", bal);
getch();
return main();
}


/*functions for balance*/
balance()
{
p("balance: %2.f", bal);
getch();
return main();
}



main()
{
menu:
clrscr();
p("BANKING SYSTEM\n");
p(" a - Deposit\n");
p(" b - Withdrawal\n");
p(" c - Balance Inquiry\n");
p(" d - Exit\n");
p(" Enter your choices: [a-d]");
s("%c",&choice);

if(choice=='a')
{
deposit();
goto menu;
}
if(choice=='b')
{
withdrawal();
goto menu;
}
if(choice=='c')
{
balance();
goto menu;
}
if(choice=='d')
{
return 0;
}



getch();
}
run this code on your turboC..,

Goodluck..Hope it helps a lot..
avatar
romgatchalian
DPC Extreme

Male
Posts : 58
Age : 25
Joined date : 2009-11-21
Location : Quezon City
Cash : 14236

http://www.jorgyromgatchalian.co.cc

Back to top Go down

Re: C++ Banking codes(ATM)

Post by L'Jyen [♥] on Sat Nov 21, 2009 2:07 pm

program po ito diba?
nice..i got one program sa C++

..mai ganito cami..
java nga lang gamit namin..
it's a program converting
dollar to peso and vice versa Wink
avatar
L'Jyen [♥]
DPC Elite

Female
Posts : 4910
Age : 24
Joined date : 2009-10-26
Location : in lala-land x]]
Cash : 19539

http://kawaii610.webs.com

Back to top Go down

Re: C++ Banking codes(ATM)

Post by `PAU.sunshine on Sat Nov 21, 2009 2:08 pm

thanks for this ^^
avatar
`PAU.sunshine
DPC Active Member

Female
Posts : 8457
Age : 22
Joined date : 2009-10-24
Location : ANTiPOLO CiTY
Cash : 21830

http://profiles.friendster.com/playgirlako

Back to top Go down

Re: C++ Banking codes(ATM)

Post by romgatchalian on Sat Nov 21, 2009 2:10 pm

L'Jyen [♥] wrote:
program po ito diba?
nice..i got one program sa C++

..mai ganito cami..
java nga lang gamit namin..
it's a program converting
dollar to peso and vice versa Wink



yup this is a program...i also love javascript but i prefer to learn jquery thing... <img src=)" longdesc="32" />
avatar
romgatchalian
DPC Extreme

Male
Posts : 58
Age : 25
Joined date : 2009-11-21
Location : Quezon City
Cash : 14236

http://www.jorgyromgatchalian.co.cc

Back to top Go down

Re: C++ Banking codes(ATM)

Post by L'Jyen [♥] on Sat Nov 21, 2009 2:17 pm

romgatchalian wrote:
L'Jyen [♥] wrote:
program po ito diba?
nice..i got one program sa C++

..mai ganito cami..
java nga lang gamit namin..
it's a program converting
dollar to peso and vice versa Wink



yup this is a program...i also love javascript but i prefer to learn jquery thing... <img src=)" longdesc="32" />

oohh..ah'c
i'll try to post it the program of
dollar to peso and vice versa maybe
monday kuya rom.. ^^
avatar
L'Jyen [♥]
DPC Elite

Female
Posts : 4910
Age : 24
Joined date : 2009-10-26
Location : in lala-land x]]
Cash : 19539

http://kawaii610.webs.com

Back to top Go down

Re: C++ Banking codes(ATM)

Post by romgatchalian on Sat Nov 21, 2009 2:39 pm

L'Jyen [♥] wrote:
romgatchalian wrote:
L'Jyen [♥] wrote:
program po ito diba?
nice..i got one program sa C++

..mai ganito cami..
java nga lang gamit namin..
it's a program converting
dollar to peso and vice versa Wink



yup this is a program...i also love javascript but i prefer to learn jquery thing... <img src=)" longdesc="32" />

oohh..ah'c
i'll try to post it the program of
dollar to peso and vice versa maybe
monday kuya rom.. ^^

Sure i'll w8 for it...
avatar
romgatchalian
DPC Extreme

Male
Posts : 58
Age : 25
Joined date : 2009-11-21
Location : Quezon City
Cash : 14236

http://www.jorgyromgatchalian.co.cc

Back to top Go down

Re: C++ Banking codes(ATM)

Post by L'Jyen [♥] on Sat Nov 21, 2009 2:55 pm

romgatchalian wrote:
L'Jyen [♥] wrote:
romgatchalian wrote:
L'Jyen [♥] wrote:
program po ito diba?
nice..i got one program sa C++

..mai ganito cami..
java nga lang gamit namin..
it's a program converting
dollar to peso and vice versa Wink



yup this is a program...i also love javascript but i prefer to learn jquery thing... <img src=)" longdesc="32" />

oohh..ah'c
i'll try to post it the program of
dollar to peso and vice versa maybe
monday kuya rom.. ^^

Sure i'll w8 for it...

thank you po^^
avatar
L'Jyen [♥]
DPC Elite

Female
Posts : 4910
Age : 24
Joined date : 2009-10-26
Location : in lala-land x]]
Cash : 19539

http://kawaii610.webs.com

Back to top Go down

Re: C++ Banking codes(ATM)

Post by HAZEL on Sat Nov 21, 2009 9:43 pm

thanks.
avatar
HAZEL
DPC Elite

Female
Posts : 3699
Age : 20
Joined date : 2009-10-26
Location : DAVAO
Cash : 21245

http://neesayzel.multiply.com/

Back to top Go down

Re: C++ Banking codes(ATM)

Post by romgatchalian on Sun Nov 22, 2009 8:32 am

neesay_vill wrote:thanks.

no problem dude
avatar
romgatchalian
DPC Extreme

Male
Posts : 58
Age : 25
Joined date : 2009-11-21
Location : Quezon City
Cash : 14236

http://www.jorgyromgatchalian.co.cc

Back to top Go down

Re: C++ Banking codes(ATM)

Post by herecomeskamote on Mon Nov 23, 2009 8:52 pm

Thanks

Panu po magparun ba nito?

Create a notepad then save into ATM. then?
avatar
herecomeskamote
DPC Member

Male
Posts : 32
Age : 22
Joined date : 2009-11-23
Location : Don oh!
Cash : 14171

http://friendster.com/daryllmuffin

Back to top Go down

Re: C++ Banking codes(ATM)

Post by romgatchalian on Wed Nov 25, 2009 7:02 pm

herecomeskamote wrote:Thanks

Panu po magparun ba nito?

Create a notepad then save into ATM. then?


it depends dude..if you have a turboc on your pc..
this topic is for college
avatar
romgatchalian
DPC Extreme

Male
Posts : 58
Age : 25
Joined date : 2009-11-21
Location : Quezon City
Cash : 14236

http://www.jorgyromgatchalian.co.cc

Back to top Go down

Re: C++ Banking codes(ATM)

Post by danielvicedo on Fri Nov 27, 2009 10:28 am

I can't understand this . XD
What is this for ? hihi .
Only graphic problems lang ako ii . XD
Btw, thanks. Very helpful. (sa kanila. XD)
avatar
danielvicedo
DPC Freak

Male
Posts : 1078
Age : 22
Joined date : 2009-10-16
Location : under my bebe's bed. :)
Cash : 15058

http://danielvicedo.tk

Back to top Go down

Re: C++ Banking codes(ATM)

Post by MhingMhengXD on Sun Nov 29, 2009 10:27 am

oha-- thanks;]
avatar
MhingMhengXD
DPC Elite

Female
Posts : 4895
Age : 21
Joined date : 2009-10-17
Location : sa tabi mo:3
Cash : 15192

http://friendster.com/purteenxd

Back to top Go down

Re: C++ Banking codes(ATM)

Post by romgatchalian on Wed Dec 02, 2009 1:24 am

MHiNG wrote:
oha-- thanks;]

no problem
avatar
romgatchalian
DPC Extreme

Male
Posts : 58
Age : 25
Joined date : 2009-11-21
Location : Quezon City
Cash : 14236

http://www.jorgyromgatchalian.co.cc

Back to top Go down

Re: C++ Banking codes(ATM)

Post by danielvicedo on Tue Dec 08, 2009 12:41 am

Thank you so much master!
avatar
danielvicedo
DPC Freak

Male
Posts : 1078
Age : 22
Joined date : 2009-10-16
Location : under my bebe's bed. :)
Cash : 15058

http://danielvicedo.tk

Back to top Go down

Re: C++ Banking codes(ATM)

Post by jhennyz on Fri Mar 05, 2010 12:11 am

L'Jyen [♥] wrote:
romgatchalian wrote:
L'Jyen [♥] wrote:
[center]program po ito diba?
nice..i got one program sa C++

..mai ganito cami..
java nga lang gamit namin..
it's a program converting
dollar to peso and vice versa Wink




yup this is a program...i also love javascript but i prefer to learn jquery thing... )" longdesc="32" />


oohh..ah'c
i'll try to post it the program of
dollar to peso and vice versa maybe
monday kuya rom.. ^^




nice code guys.. ^^

siz.. we've created the same problem too..

samin euro to peso then dollar to peso.. xD

Code:

import java.io.*;
import java.text.DecimalFormat;

public class MoneyConversion{
public static void main(String[]args)throws IOException{

BufferedReader br=new
BufferedReader(new InputStreamReader(System.in));

DecimalFormat formatter=new
DecimalFormat("#0.00");


double dollar= 49.65;
double euro= 69.83;
char choices;
int peso;

System.out.println("\n\nChoose your transaction:\n");

System.out.println("[1]Dollar to Peso\n");
System.out.println("[2]Euro to Peso\n");
System.out.println("[3]EXiT\n");


do{

System.out.println("Enter your choice:");
choices=br.readLine().charAt(0);


switch(choices){

case '1':

System.out.println("Enter Dollar Value:");
peso=Integer.parseInt(br.readLine());

System.out.println("the conversion of your dollar is:"+ peso*dollar);

break;

case '2':


System.out.println("Enter Euro Value:");
peso=Integer.parseInt(br.readLine());

System.out.println("the conversion of your Peso is:"+ peso*euro);

break;

case '3':

System.out.println("BYE!");

break;

default:

System.out.println("\nInvalid Selection!\n");
}

}while (choices!='3');

}
}



im starting to L0VE THiS forum because of this TOPICS!!.. ^^
avatar
jhennyz
DPC Addict

Female
Posts : 148
Age : 25
Joined date : 2010-03-04
Location : ~NOWHERETOFiND~
Cash : 14286

Back to top Go down

Re: C++ Banking codes(ATM)

Post by kenvirtz on Sat Mar 06, 2010 6:54 pm

[b]ehy peopLe?? pwede bah e2 mah run sa visual basic c++??? d ko kasi ma try kasi waLa ako VB... sah skul lng meron...
avatar
kenvirtz
Guest

Male
Posts : 3
Age : 25
Joined date : 2010-03-06
Location : cebu,city
Cash : 13618

Back to top Go down

Re: C++ Banking codes(ATM)

Post by kenvirtz on Sat Mar 06, 2010 6:57 pm

what i mean yang ATM code.. pwede kayah yan sa visual basic??
avatar
kenvirtz
Guest

Male
Posts : 3
Age : 25
Joined date : 2010-03-06
Location : cebu,city
Cash : 13618

Back to top Go down

Re: C++ Banking codes(ATM)

Post by jhennyz on Sat Mar 06, 2010 7:02 pm

^

nope..

Visual Basic is Different from Turbo C++ application..

*avoid double posting po..^^
and speak in english...
avatar
jhennyz
DPC Addict

Female
Posts : 148
Age : 25
Joined date : 2010-03-04
Location : ~NOWHERETOFiND~
Cash : 14286

Back to top Go down

Re: C++ Banking codes(ATM)

Post by kenvirtz on Sun Mar 07, 2010 4:31 pm

^^ sorry! thnx for the info...
avatar
kenvirtz
Guest

Male
Posts : 3
Age : 25
Joined date : 2010-03-06
Location : cebu,city
Cash : 13618

Back to top Go down

Re: C++ Banking codes(ATM)

Post by jhennyz on Sun Mar 07, 2010 6:34 pm

^

oryt.. no probleamo.. xD

anyway.. are u needing this code?
avatar
jhennyz
DPC Addict

Female
Posts : 148
Age : 25
Joined date : 2010-03-04
Location : ~NOWHERETOFiND~
Cash : 14286

Back to top Go down

Re: C++ Banking codes(ATM)

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum