C++ Banking codes(ATM)
+5
herecomeskamote
HAZEL
`PAU.sunshine
L'Jyen [♥]
romgatchalian
9 posters
Page 1 of 1
C++ Banking codes(ATM)
ATM Banking Project for your projects if you have
here's codes:
Goodluck..Hope it helps a lot..
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();
}
Goodluck..Hope it helps a lot..
Re: C++ Banking codes(ATM)
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
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
Re: C++ Banking codes(ATM)
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
yup this is a program...i also love javascript but i prefer to learn jquery thing... )" longdesc="32" />
Re: C++ Banking codes(ATM)
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
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.. ^^
i'll try to post it the program of
dollar to peso and vice versa maybe
monday kuya rom.. ^^
Re: C++ Banking codes(ATM)
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
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.. ^^
Sure i'll w8 for it...
Re: C++ Banking codes(ATM)
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
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.. ^^
Sure i'll w8 for it...
thank you po^^
Re: C++ Banking codes(ATM)
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
Re: C++ Banking codes(ATM)
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)
What is this for ? hihi .
Only graphic problems lang ako ii . XD
Btw, thanks. Very helpful. (sa kanila. XD)
Re: C++ Banking codes(ATM)
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
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.. ^^
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!!.. ^^
jhennyz- DPC Addict
-
Posts : 148
Age : 31
Joined date : 2010-03-04
Location : ~NOWHERETOFiND~
Cash : 26356
Re: C++ Banking codes(ATM)
[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...
kenvirtz- Guest
-
Posts : 3
Age : 31
Joined date : 2010-03-06
Location : cebu,city
Cash : 25688
Re: C++ Banking codes(ATM)
what i mean yang ATM code.. pwede kayah yan sa visual basic??
kenvirtz- Guest
-
Posts : 3
Age : 31
Joined date : 2010-03-06
Location : cebu,city
Cash : 25688
Re: C++ Banking codes(ATM)
^
nope..
Visual Basic is Different from Turbo C++ application..
*avoid double posting po..^^
and speak in english...
nope..
Visual Basic is Different from Turbo C++ application..
*avoid double posting po..^^
and speak in english...
jhennyz- DPC Addict
-
Posts : 148
Age : 31
Joined date : 2010-03-04
Location : ~NOWHERETOFiND~
Cash : 26356
Re: C++ Banking codes(ATM)
^^ sorry! thnx for the info...
kenvirtz- Guest
-
Posts : 3
Age : 31
Joined date : 2010-03-06
Location : cebu,city
Cash : 25688
Re: C++ Banking codes(ATM)
^
oryt.. no probleamo.. xD
anyway.. are u needing this code?
oryt.. no probleamo.. xD
anyway.. are u needing this code?
jhennyz- DPC Addict
-
Posts : 148
Age : 31
Joined date : 2010-03-04
Location : ~NOWHERETOFiND~
Cash : 26356
Similar topics
» Hide Codes
» Hide Codes & Div IDs
» POST YOUR JAVA CODES EXAMPLE..
» NEW DYNAMIC PROFILE CODES BANNER !
» Dynamic Profile Codes Userbars!
» Hide Codes & Div IDs
» POST YOUR JAVA CODES EXAMPLE..
» NEW DYNAMIC PROFILE CODES BANNER !
» Dynamic Profile Codes Userbars!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|