SlideShare a Scribd company logo
2
Most read
3
Most read
24
Most read
C Program for HNB
ATM Machine
DCSD 15.2
Group 5
Introduction
•Mission: Building a C program to an ATM machine by
using our C Programming Knowledge.
•Vision: Enhancing C programming know how in
operating in ATM machines.
Background to the Project
•Achieving the current issues and global issues.
•Be practical in our day today world.
•Co-op with the modern world.
•Dealing with novel technical knowhow.
•Enhancing team spirits and sharing knowledge.
•Achieving the ultimate goals of our study area.
Aims & Objectives
• Enhancing ICT know how in manipulating ATM
machines.
• Awareness of progress of each and every component
given to the group.
• Understanding the shortcoming or drawbacks and
taking remedial measures.
• Proving the knowledge obtained practically.
• Getting students activity engaged in activities related
ICT.
• Marking the learning outcomes positive & reach the
ultimate goal.
• Understanding global issues. Cooperating up with
current friends.
• Cooperating up with current friends.
Aims & Objectives
What is an ATM Machine?
An Automated Teller Machine (ATM) is an electronic
banking outlet, which allows customers to complete basic
transaction without the aid of a branch representative or a
teller
ATM Card
An ATM card is any payment issued by a financial
institution that enables a customer to access an ATM
machine in order to perform transaction.
Advantages
• Can use ATM machines at any time without accessing into
a bank.
• ATMs offer the convenience of multiple locations.
• Your ATM card is protected by a PIN.
• You don’t need to fill out any slips to do your task.
• ATMs are faster than going to the bank – no long lines.
• One can withdraw cash at ATMs in foreign countries.
Disadvantages
•There must be system down failures.
•You might forget your PIN number.
•Risk of robbery when you leave the ATM.
•Fees charge to use ATMs of other banks can become
expensive.
The Source Code
The first page
printf("tttEnter your PIN:");
scanf("%d",&pin);
do{
if (pin==12345)
{
start(a);
printf("tttSelect you operation: ");
scanf("%d",&a);
;
else
{
if (i<4)
{printf("ttEnter valid PIN!n");
Enter your pin:
do{
if (pin==12345)
{
start(a);
printf("tttSelect your operation: ");
scanf("%d",&a);
}
else
{
if (i<4)
{printf("ttEnter valid PIN!n");
return main();}
else
{ printf("nn************* Your card
has been blocked! ******************");
continue;}
return 0;
}
Calling the Start
function
*******************your card has been blocked******************
void start(int a)
{
printf("*******************************************************************n");
printf(" Welcome to HNB ATM service!n");
printf("nn---------------------DCSD 15.2 GROUP 5-------------------------nn");
printf("*******************************************************************n");
printf("ttt1.Check amount.n");
printf("ttt2.Withdraw money.n");
printf("ttt3.Deposit money.n");
printf("ttt4.Transfer money.n");
printf("ttt5.Exit.n");
printf("*******************************************************************n");
The start function
************************************************************
Welcome to HNB ATM service!
-------------DCSD 15.2 GROUP 5---------------
************************************************************
1.check the amount
2.withdraw money
3.Deposit money.
4.Transfer money.
5.Exit
************************************************************
*
Select your operation:
.....................
void print()
{
int blink;
printf("please wait....n");
for(blink=0;blink<7;blink++)
}
printf("....");
usleep(350000);}
}
Special
function
print
Please wait.........
void start(int a);
void print();
float b=200000;
int i=1;
Initial Balance
Declaring global variables
int main()
{
int a=0,pin=0;
int acc_no=0;
char m,M;
float w=0,d=0,t=0;
i=i+1;
Declaring the local variables
switch(a)
{
case 1:
print();
printf("ntYour current balance is: Rs.%.2f",b);
break;
case 2:
print();
printf("ntEnter amount:");
scanf("%f",&w);
if(w<b&&b>500)
{b=b-w;
print();
printf("nttttPlease collect your cash..!n");
printf("ttCurrent balance is:Rs.%.2f",b);}
else
{
printf("nttttInsufficient balance!");
}
break;
Your current balance is: Rs.200000.00
new operation ? (y/n):
Please wait..................................
Enter amount:100000
Please wait................................
Please collect your cash..
Your current balance is: Rs. 100000.00
New operation ? (y/n)
Enter amount: 500000
Insufficient balance !
new operation ? (y/n):
case 3:
print();
printf("nttEnter amount:");
scanf("%f",&d);
{b=b+d;
printf("nttYour current balance is: Rs.%.2f",b);}
break;
Enter amount: 100000
Your current balance is :Rs.300000.00
new operation ? (y/n):
case 4:
print();
printf("nttEnter Transfer Code:");
scanf("%d",&acc_no);
if(100000<acc_no&&acc_no<999999)
{
printf("nttEnter amount:");
scanf("%f",&t);
if(t<b && b>500)
{ b=b-t;
print();
printf("ntttTransfer is successful!n");
printf("tttYour current balance is: Rs.%.2fn",b);
}
else
{
printf("nttttInsufficient balance.!");
}
}
else
{
printf("nttttInvalid Transfer Code! n");}
break;
Enter the amount:
Enter recipient acc no:
...................
100000
Your current balance is :Rs.100000.00
123456
Please wait.................
New opeeration ? (y/n):
case 5:
print();
printf("ntttttThank you !n");
return 0;
default:
printf("nttttNo function!");
}
printf("nttNew operation?(n/y):");
scanf("%s",&M);
if (M=='n')
break;
}while (M=='y');
printf("nnntttThank you!n");
printf("nttttDo you want to exit?
(y/n)");
scanf("%s",&m);
if (m=='n')
{
return main(1);
}
else if (m=='y')
{
return 0;
}
return 0;
}
C program for hnb atm machine   original - updated - [pys]
Group MembersGroup Members
M.K.P.U. Maddumage DG15230
Suriyaarachchi P. Y DG15251
N.V. Haththotuwa DG15216
Ravindu M.H. S DG15246
Prabhashwara.C.S. S DG15243
I.K.L. Madushanka DG15233
D.P.N. Senevirathna DG15250
C program for hnb atm machine   original - updated - [pys]

More Related Content

What's hot (20)

PPT
Atm system
Hardik Kakadiya
 
PPTX
Atm software ppt
ParmarAnisha
 
PPTX
ATM BANKING SYSTEM
sathish sak
 
PPTX
ATM project presentation
Abdul Rafay
 
PPTX
India toards cashless economy
Shahab Khan
 
DOCX
Project report on (atm MAnagment system)
Muhammad Umer Lari
 
PPTX
Unified payment interface
Ravi Raj Kamal
 
PPTX
Ppt on atm machine
Prabhat Singh
 
PPTX
ATM BANKING
Ashish Saini
 
PPTX
Cashless Society (Cashless Economy, Online Transactions, is india moving towa...
Jeet Amrutiya
 
PPTX
Cashless India
Pooja.S Perumal
 
PPTX
Unified Payments Interface (UPI)
Akash Kumar
 
PPTX
Banking Management System Project
Chaudhry Sajid
 
PPTX
Digital india
vijay kumar sarabu
 
DOCX
Canteen management system Documentation
rimshailyas1
 
PPT
Bank Management System
A-Tech and Software Development
 
PPTX
UPI Presentation.pptx
RaushanKumar375157
 
PPTX
Web based online shopping system Presentation slide
Rakibul Hasan Pranto
 
PPT
Bank Management System
kartikeya upadhyay
 
Atm system
Hardik Kakadiya
 
Atm software ppt
ParmarAnisha
 
ATM BANKING SYSTEM
sathish sak
 
ATM project presentation
Abdul Rafay
 
India toards cashless economy
Shahab Khan
 
Project report on (atm MAnagment system)
Muhammad Umer Lari
 
Unified payment interface
Ravi Raj Kamal
 
Ppt on atm machine
Prabhat Singh
 
ATM BANKING
Ashish Saini
 
Cashless Society (Cashless Economy, Online Transactions, is india moving towa...
Jeet Amrutiya
 
Cashless India
Pooja.S Perumal
 
Unified Payments Interface (UPI)
Akash Kumar
 
Banking Management System Project
Chaudhry Sajid
 
Digital india
vijay kumar sarabu
 
Canteen management system Documentation
rimshailyas1
 
Bank Management System
A-Tech and Software Development
 
UPI Presentation.pptx
RaushanKumar375157
 
Web based online shopping system Presentation slide
Rakibul Hasan Pranto
 
Bank Management System
kartikeya upadhyay
 

Similar to C program for hnb atm machine original - updated - [pys] (20)

DOCX
cbse 12 computer science investigatory project
D. j Vicky
 
DOCX
cbse 12 computer science investigatory project
D. j Vicky
 
DOCX
cbse 12 computer science IP
D. j Vicky
 
DOCX
Bti1022 lab sheet 3
alish sha
 
DOCX
A computer shop management system
Ûťţåm Ğűpţä
 
PDF
LAB_MANUAL_cpl_21scheme-2.pdf
RavinReddy3
 
PPTX
Alliance 2017 - What's New and Coming Up in Dynamics CRM
Sparkrock
 
PPTX
The future of customer service handout
Martin Hill-Wilson
 
PDF
OWASP Poland Day 2018 - Anthony Fielding and William Jardine - Common App Vulns
OWASP
 
PDF
Fraud prevention is better with TigerGraph inside
TigerGraph
 
PDF
how to remove graphics card.pdf
ABOUTTHEPC.COM
 
DOCX
Relational Operators in C
Lakshmi Sarvani Videla
 
PPTX
Credit card fraud detection using python machine learning
Sandeep Garg
 
PPTX
Share Credit_Card_Fraud_Detection_ML_MP (1).pptx
yatintaneja6
 
PDF
Neo4j GraphTalk Copenhagen - Next Generation Solutions using Neo4j
Neo4j
 
PDF
Transactional Streaming: If you can compute it, you can probably stream it.
jhugg
 
PDF
iPads and SMART Boards - Making the Most of Both
karlaholt
 
PPT
ANPR based Security System Using ALR
Ashok Basnet
 
PPTX
Introduction to Six Sigma
Ibrahim Khan Md.
 
PPTX
How Not To Code Flex Applications
jeff tapper
 
cbse 12 computer science investigatory project
D. j Vicky
 
cbse 12 computer science investigatory project
D. j Vicky
 
cbse 12 computer science IP
D. j Vicky
 
Bti1022 lab sheet 3
alish sha
 
A computer shop management system
Ûťţåm Ğűpţä
 
LAB_MANUAL_cpl_21scheme-2.pdf
RavinReddy3
 
Alliance 2017 - What's New and Coming Up in Dynamics CRM
Sparkrock
 
The future of customer service handout
Martin Hill-Wilson
 
OWASP Poland Day 2018 - Anthony Fielding and William Jardine - Common App Vulns
OWASP
 
Fraud prevention is better with TigerGraph inside
TigerGraph
 
how to remove graphics card.pdf
ABOUTTHEPC.COM
 
Relational Operators in C
Lakshmi Sarvani Videla
 
Credit card fraud detection using python machine learning
Sandeep Garg
 
Share Credit_Card_Fraud_Detection_ML_MP (1).pptx
yatintaneja6
 
Neo4j GraphTalk Copenhagen - Next Generation Solutions using Neo4j
Neo4j
 
Transactional Streaming: If you can compute it, you can probably stream it.
jhugg
 
iPads and SMART Boards - Making the Most of Both
karlaholt
 
ANPR based Security System Using ALR
Ashok Basnet
 
Introduction to Six Sigma
Ibrahim Khan Md.
 
How Not To Code Flex Applications
jeff tapper
 
Ad

Recently uploaded (20)

PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Ad

C program for hnb atm machine original - updated - [pys]

  • 1. C Program for HNB ATM Machine DCSD 15.2 Group 5
  • 2. Introduction •Mission: Building a C program to an ATM machine by using our C Programming Knowledge. •Vision: Enhancing C programming know how in operating in ATM machines.
  • 3. Background to the Project •Achieving the current issues and global issues. •Be practical in our day today world. •Co-op with the modern world. •Dealing with novel technical knowhow. •Enhancing team spirits and sharing knowledge. •Achieving the ultimate goals of our study area.
  • 4. Aims & Objectives • Enhancing ICT know how in manipulating ATM machines. • Awareness of progress of each and every component given to the group. • Understanding the shortcoming or drawbacks and taking remedial measures. • Proving the knowledge obtained practically.
  • 5. • Getting students activity engaged in activities related ICT. • Marking the learning outcomes positive & reach the ultimate goal. • Understanding global issues. Cooperating up with current friends. • Cooperating up with current friends. Aims & Objectives
  • 6. What is an ATM Machine? An Automated Teller Machine (ATM) is an electronic banking outlet, which allows customers to complete basic transaction without the aid of a branch representative or a teller
  • 7. ATM Card An ATM card is any payment issued by a financial institution that enables a customer to access an ATM machine in order to perform transaction.
  • 8. Advantages • Can use ATM machines at any time without accessing into a bank. • ATMs offer the convenience of multiple locations. • Your ATM card is protected by a PIN. • You don’t need to fill out any slips to do your task. • ATMs are faster than going to the bank – no long lines. • One can withdraw cash at ATMs in foreign countries.
  • 9. Disadvantages •There must be system down failures. •You might forget your PIN number. •Risk of robbery when you leave the ATM. •Fees charge to use ATMs of other banks can become expensive.
  • 11. The first page printf("tttEnter your PIN:"); scanf("%d",&pin); do{ if (pin==12345) { start(a); printf("tttSelect you operation: "); scanf("%d",&a); ; else { if (i<4) {printf("ttEnter valid PIN!n"); Enter your pin:
  • 12. do{ if (pin==12345) { start(a); printf("tttSelect your operation: "); scanf("%d",&a); } else { if (i<4) {printf("ttEnter valid PIN!n"); return main();} else { printf("nn************* Your card has been blocked! ******************"); continue;} return 0; } Calling the Start function *******************your card has been blocked******************
  • 13. void start(int a) { printf("*******************************************************************n"); printf(" Welcome to HNB ATM service!n"); printf("nn---------------------DCSD 15.2 GROUP 5-------------------------nn"); printf("*******************************************************************n"); printf("ttt1.Check amount.n"); printf("ttt2.Withdraw money.n"); printf("ttt3.Deposit money.n"); printf("ttt4.Transfer money.n"); printf("ttt5.Exit.n"); printf("*******************************************************************n"); The start function
  • 14. ************************************************************ Welcome to HNB ATM service! -------------DCSD 15.2 GROUP 5--------------- ************************************************************ 1.check the amount 2.withdraw money 3.Deposit money. 4.Transfer money. 5.Exit ************************************************************ * Select your operation:
  • 15. ..................... void print() { int blink; printf("please wait....n"); for(blink=0;blink<7;blink++) } printf("...."); usleep(350000);} } Special function print Please wait.........
  • 16. void start(int a); void print(); float b=200000; int i=1; Initial Balance Declaring global variables
  • 17. int main() { int a=0,pin=0; int acc_no=0; char m,M; float w=0,d=0,t=0; i=i+1; Declaring the local variables
  • 18. switch(a) { case 1: print(); printf("ntYour current balance is: Rs.%.2f",b); break; case 2: print(); printf("ntEnter amount:"); scanf("%f",&w); if(w<b&&b>500) {b=b-w; print(); printf("nttttPlease collect your cash..!n"); printf("ttCurrent balance is:Rs.%.2f",b);} else { printf("nttttInsufficient balance!"); } break; Your current balance is: Rs.200000.00 new operation ? (y/n): Please wait.................................. Enter amount:100000 Please wait................................ Please collect your cash.. Your current balance is: Rs. 100000.00 New operation ? (y/n) Enter amount: 500000 Insufficient balance ! new operation ? (y/n):
  • 19. case 3: print(); printf("nttEnter amount:"); scanf("%f",&d); {b=b+d; printf("nttYour current balance is: Rs.%.2f",b);} break; Enter amount: 100000 Your current balance is :Rs.300000.00 new operation ? (y/n):
  • 20. case 4: print(); printf("nttEnter Transfer Code:"); scanf("%d",&acc_no); if(100000<acc_no&&acc_no<999999) { printf("nttEnter amount:"); scanf("%f",&t); if(t<b && b>500) { b=b-t; print(); printf("ntttTransfer is successful!n"); printf("tttYour current balance is: Rs.%.2fn",b); } else { printf("nttttInsufficient balance.!"); } } else { printf("nttttInvalid Transfer Code! n");} break; Enter the amount: Enter recipient acc no: ................... 100000 Your current balance is :Rs.100000.00 123456 Please wait................. New opeeration ? (y/n):
  • 21. case 5: print(); printf("ntttttThank you !n"); return 0; default: printf("nttttNo function!"); } printf("nttNew operation?(n/y):"); scanf("%s",&M); if (M=='n') break; }while (M=='y'); printf("nnntttThank you!n"); printf("nttttDo you want to exit? (y/n)"); scanf("%s",&m); if (m=='n') { return main(1); } else if (m=='y') { return 0; } return 0; }
  • 23. Group MembersGroup Members M.K.P.U. Maddumage DG15230 Suriyaarachchi P. Y DG15251 N.V. Haththotuwa DG15216 Ravindu M.H. S DG15246 Prabhashwara.C.S. S DG15243 I.K.L. Madushanka DG15233 D.P.N. Senevirathna DG15250