SlideShare a Scribd company logo
2
Most read
# include<constream.h>
int main()
{
clrscr();
int password;
for (int i=0;i<3;i++)
{cout<<"enter password:n";
cin>>password;
if (password==12345)
{cout<<"correct!n";
double balance=10000;
double withdraw,deposit;
int option;
cout<<"n";
cout<< "       *************Aqib memon****************n";
   cout<<"********Automated teller machine********"<<endl;
   cout<<"choose a transaction n";
   cout<<"n";
   cout<<"[1] inquire balance n"
       <<"[2] withdraw n"
       <<"[3] deposite n"
       <<"[4] Quit n"
       <<"n"
       <<"Enter option:";
   cin>>option;
   switch(option)
   {
   case 1:
   cout<<"n [[[BALANCE INQUIRY]]]n";
   cout.setf(ios::fixed);
   cout.setf(ios::showpoint);
   cout.precision(2);
   cout<<"n your current balance is Rs:"<<balance<<endl;
   break;
   case 2:
   cout<<"n [[[WITHDRAW]]]n";
   cout<<"n Enter ammount Rs:";
   cin>>withdraw;
   balance=balance-withdraw;
   cout.setf(ios::fixed);
cout.setf(ios::showpoint);
  cout.precision(2);
  cout<<"you withdrew Rs:"<<withdraw<<endl;
  cout<<"your remainig balance is"<<balance<<endl;
  continue;
  case 3:
  cout<<"n [[[deposit]]]n";
  cout<<"Enter ammount Rs:";
  cin>>deposit;
  balance=balance+deposit;
  cout.setf(ios::fixed);
  cout.setf(ios::showpoint);
  cout.precision(2);
  cout<<"You deposited Rs:"<<deposit<<endl;
  cout<<"Your new balance is"<<balance<<endl;
  continue;
  case 4:
  cout<<"n***[[[EXIT MODE]]]***n";
  break;
  default :
  cout<<"n That is an invalid optionn";
  }


  break;
   }
  else
  cout<<"n please try again n";
  }


getch();
return 0;
}

More Related Content

PPTX
Automated Teller Machine
PPTX
Ppt on atm machine
PPTX
BITCOIN TECHNOLOGY AND ITS USES
PPTX
Database concepts using libre office base
PPTX
Ppt final
DOC
Out sources of atm
PPTX
ATM BANKING SYSTEM
PDF
Central Bank Digital Currency (CBDC): Best Practice and Technical Considerations
Automated Teller Machine
Ppt on atm machine
BITCOIN TECHNOLOGY AND ITS USES
Database concepts using libre office base
Ppt final
Out sources of atm
ATM BANKING SYSTEM
Central Bank Digital Currency (CBDC): Best Practice and Technical Considerations

What's hot (20)

PPTX
UPI Presentation.pptx
DOCX
Atm proposal in oop
PPTX
Bitcoin School Project
PPTX
Web Design Basics for Kids: HTML & CSS
PPTX
HTML frames and HTML forms
PPT
Html presentation
PPTX
Introduction Bitcoin
PPTX
Cash deposit machine
PPTX
Bank system presentation
PPTX
Blockchain in banking sector
PPT
Payment Gateway
DOCX
A Cashless Society
PDF
Word Processing.pdf
PPTX
An Overview on Bitcoin
PDF
Word practical questions for exercises
PPTX
E banking, internet banking and all services
PDF
UPI Technology
DOC
Mobile banking
PPTX
Adobe Pagemaker 7.0
UPI Presentation.pptx
Atm proposal in oop
Bitcoin School Project
Web Design Basics for Kids: HTML & CSS
HTML frames and HTML forms
Html presentation
Introduction Bitcoin
Cash deposit machine
Bank system presentation
Blockchain in banking sector
Payment Gateway
A Cashless Society
Word Processing.pdf
An Overview on Bitcoin
Word practical questions for exercises
E banking, internet banking and all services
UPI Technology
Mobile banking
Adobe Pagemaker 7.0
Ad

Similar to Atm machine using c++ (20)

DOC
Atm machine using c++
DOC
Atm machine using c++
DOC
Atm machine using c++
DOCX
program C++ Atm
DOCX
C++ file
DOCX
C++ file
TXT
Hospital management
TXT
Hospital management
PDF
Asssignment2
DOCX
Programa Sumar y Multiplicar
PDF
This what Im suppose to do and this is what I have so far.In thi.pdf
PDF
main.cpp #include iostream #include iomanip #include fs.pdf
PDF
Unit 1 ocs752 introduction to c programming
DOCX
i need to write a return type function that takes information about th.docx
PDF
Bangun datar dan bangun ruang
DOCX
code (1) thông tin nhập môn cntt hdsd.docx
PPTX
Project in programming
PPT
Powerpoint loop examples a
PDF
Rajeev oops 2nd march
DOCX
simple-movie-ticket-booking-system-1
Atm machine using c++
Atm machine using c++
Atm machine using c++
program C++ Atm
C++ file
C++ file
Hospital management
Hospital management
Asssignment2
Programa Sumar y Multiplicar
This what Im suppose to do and this is what I have so far.In thi.pdf
main.cpp #include iostream #include iomanip #include fs.pdf
Unit 1 ocs752 introduction to c programming
i need to write a return type function that takes information about th.docx
Bangun datar dan bangun ruang
code (1) thông tin nhập môn cntt hdsd.docx
Project in programming
Powerpoint loop examples a
Rajeev oops 2nd march
simple-movie-ticket-booking-system-1
Ad

More from Aqib Memon (20)

DOC
Communication skills in english
PDF
Mentally slow poision
DOC
Human personality and its pathology
DOC
Corporate crime reporter
PDF
Pakistan penal code
DOC
Speech preparation
DOC
How to handle and help emotionally sensitive people
DOC
Good sense of humor
DOC
Dealing with relatives
DOC
A guide to good communication skills even if you are shy
DOC
Voice & accent
PDF
how to have New ideas
PDF
New ideas
DOC
If i become pm of pakistan
PPT
The way to get rid of fatness
DOC
Steganography
PDF
New ideas
PPT
01 computer%20 forensics%20in%20todays%20world
DOC
Basic questions about artificial intelligence
DOC
Speech preparation
Communication skills in english
Mentally slow poision
Human personality and its pathology
Corporate crime reporter
Pakistan penal code
Speech preparation
How to handle and help emotionally sensitive people
Good sense of humor
Dealing with relatives
A guide to good communication skills even if you are shy
Voice & accent
how to have New ideas
New ideas
If i become pm of pakistan
The way to get rid of fatness
Steganography
New ideas
01 computer%20 forensics%20in%20todays%20world
Basic questions about artificial intelligence
Speech preparation

Recently uploaded (20)

PDF
KodekX | Application Modernization Development
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Network Security Unit 5.pdf for BCA BBA.
KodekX | Application Modernization Development
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Digital-Transformation-Roadmap-for-Companies.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
20250228 LYD VKU AI Blended-Learning.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Advanced methodologies resolving dimensionality complications for autism neur...
Spectral efficient network and resource selection model in 5G networks
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
sap open course for s4hana steps from ECC to s4
The Rise and Fall of 3GPP – Time for a Sabbatical?
Programs and apps: productivity, graphics, security and other tools
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Network Security Unit 5.pdf for BCA BBA.

Atm machine using c++

  • 1. # include<constream.h> int main() { clrscr(); int password; for (int i=0;i<3;i++) {cout<<"enter password:n"; cin>>password; if (password==12345) {cout<<"correct!n"; double balance=10000; double withdraw,deposit; int option; cout<<"n"; cout<< " *************Aqib memon****************n"; cout<<"********Automated teller machine********"<<endl; cout<<"choose a transaction n"; cout<<"n"; cout<<"[1] inquire balance n" <<"[2] withdraw n" <<"[3] deposite n" <<"[4] Quit n" <<"n" <<"Enter option:"; cin>>option; switch(option) { case 1: cout<<"n [[[BALANCE INQUIRY]]]n"; cout.setf(ios::fixed); cout.setf(ios::showpoint); cout.precision(2); cout<<"n your current balance is Rs:"<<balance<<endl; break; case 2: cout<<"n [[[WITHDRAW]]]n"; cout<<"n Enter ammount Rs:"; cin>>withdraw; balance=balance-withdraw; cout.setf(ios::fixed);
  • 2. cout.setf(ios::showpoint); cout.precision(2); cout<<"you withdrew Rs:"<<withdraw<<endl; cout<<"your remainig balance is"<<balance<<endl; continue; case 3: cout<<"n [[[deposit]]]n"; cout<<"Enter ammount Rs:"; cin>>deposit; balance=balance+deposit; cout.setf(ios::fixed); cout.setf(ios::showpoint); cout.precision(2); cout<<"You deposited Rs:"<<deposit<<endl; cout<<"Your new balance is"<<balance<<endl; continue; case 4: cout<<"n***[[[EXIT MODE]]]***n"; break; default : cout<<"n That is an invalid optionn"; } break; } else cout<<"n please try again n"; } getch(); return 0; }