SlideShare une entreprise Scribd logo
1  sur  24
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;
}
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]

Contenu connexe

Tendances

54039271 atm-project-report
54039271 atm-project-report54039271 atm-project-report
54039271 atm-project-reportKalpana Reddy
 
54024405 project-report-banking-management-system
54024405 project-report-banking-management-system54024405 project-report-banking-management-system
54024405 project-report-banking-management-systemnancs
 
SYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMSYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMNitish Xavier Tirkey
 
Bank management system
Bank management systemBank management system
Bank management systemMahmudul Hasan
 
Bank Management System
Bank Management SystemBank Management System
Bank Management SystemHasan Khan
 
Banking system
Banking systemBanking system
Banking systemmjleo
 
ATM project presentation
ATM project presentationATM project presentation
ATM project presentationAbdul Rafay
 
Presentaion on banking system in c++
Presentaion on banking system in c++Presentaion on banking system in c++
Presentaion on banking system in c++Zobia Aziz
 
Banking management system
Banking management systemBanking management system
Banking management systemHome
 
A CASE Lab Report - Project File on "ATM - Banking System"
A CASE Lab Report - Project File on  "ATM - Banking System"A CASE Lab Report - Project File on  "ATM - Banking System"
A CASE Lab Report - Project File on "ATM - Banking System"joyousbharat
 
[OOP - Lec 19] Static Member Functions
[OOP - Lec 19] Static Member Functions[OOP - Lec 19] Static Member Functions
[OOP - Lec 19] Static Member FunctionsMuhammad Hammad Waseem
 
Banking Management System Project documentation
Banking Management System Project documentationBanking Management System Project documentation
Banking Management System Project documentationChaudhry Sajid
 

Tendances (20)

Atm project
Atm projectAtm project
Atm project
 
54039271 atm-project-report
54039271 atm-project-report54039271 atm-project-report
54039271 atm-project-report
 
Bank management system
Bank management systemBank management system
Bank management system
 
54024405 project-report-banking-management-system
54024405 project-report-banking-management-system54024405 project-report-banking-management-system
54024405 project-report-banking-management-system
 
SYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMSYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEM
 
Bank management system
Bank management systemBank management system
Bank management system
 
BANKING SYSTEM
BANKING SYSTEMBANKING SYSTEM
BANKING SYSTEM
 
Bank Management System
Bank Management SystemBank Management System
Bank Management System
 
Banking system
Banking systemBanking system
Banking system
 
Atm software ppt
Atm software pptAtm software ppt
Atm software ppt
 
ATM project presentation
ATM project presentationATM project presentation
ATM project presentation
 
Banking java project
Banking java projectBanking java project
Banking java project
 
The atm system
The atm systemThe atm system
The atm system
 
Presentaion on banking system in c++
Presentaion on banking system in c++Presentaion on banking system in c++
Presentaion on banking system in c++
 
Banking management system
Banking management systemBanking management system
Banking management system
 
Atm software
Atm softwareAtm software
Atm software
 
A CASE Lab Report - Project File on "ATM - Banking System"
A CASE Lab Report - Project File on  "ATM - Banking System"A CASE Lab Report - Project File on  "ATM - Banking System"
A CASE Lab Report - Project File on "ATM - Banking System"
 
PPT.pptx
PPT.pptxPPT.pptx
PPT.pptx
 
[OOP - Lec 19] Static Member Functions
[OOP - Lec 19] Static Member Functions[OOP - Lec 19] Static Member Functions
[OOP - Lec 19] Static Member Functions
 
Banking Management System Project documentation
Banking Management System Project documentationBanking Management System Project documentation
Banking Management System Project documentation
 

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

cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project D. j Vicky
 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project D. j Vicky
 
cbse 12 computer science IP
cbse 12 computer science IPcbse 12 computer science IP
cbse 12 computer science IPD. j Vicky
 
Bti1022 lab sheet 3
Bti1022 lab sheet 3Bti1022 lab sheet 3
Bti1022 lab sheet 3alish sha
 
A computer shop management system
A computer shop management system A computer shop management system
A computer shop management system Ûťţåm Ğűpţä
 
LAB_MANUAL_cpl_21scheme-2.pdf
LAB_MANUAL_cpl_21scheme-2.pdfLAB_MANUAL_cpl_21scheme-2.pdf
LAB_MANUAL_cpl_21scheme-2.pdfRavinReddy3
 
Alliance 2017 - What's New and Coming Up in Dynamics CRM
Alliance 2017 - What's New and Coming Up in Dynamics CRMAlliance 2017 - What's New and Coming Up in Dynamics CRM
Alliance 2017 - What's New and Coming Up in Dynamics CRMSparkrock
 
The future of customer service handout
The future of customer service handoutThe future of customer service handout
The future of customer service handoutMartin Hill-Wilson
 
OWASP Poland Day 2018 - Anthony Fielding and William Jardine - Common App Vulns
OWASP Poland Day 2018 - Anthony Fielding and William Jardine - Common App VulnsOWASP Poland Day 2018 - Anthony Fielding and William Jardine - Common App Vulns
OWASP Poland Day 2018 - Anthony Fielding and William Jardine - Common App VulnsOWASP
 
Fraud prevention is better with TigerGraph inside
Fraud prevention is better with  TigerGraph insideFraud prevention is better with  TigerGraph inside
Fraud prevention is better with TigerGraph insideTigerGraph
 
how to remove graphics card.pdf
how to remove graphics card.pdfhow to remove graphics card.pdf
how to remove graphics card.pdfABOUTTHEPC.COM
 
Credit card fraud detection using python machine learning
Credit card fraud detection using python machine learningCredit card fraud detection using python machine learning
Credit card fraud detection using python machine learningSandeep Garg
 
Share Credit_Card_Fraud_Detection_ML_MP (1).pptx
Share Credit_Card_Fraud_Detection_ML_MP (1).pptxShare Credit_Card_Fraud_Detection_ML_MP (1).pptx
Share Credit_Card_Fraud_Detection_ML_MP (1).pptxyatintaneja6
 
Neo4j GraphTalk Copenhagen - Next Generation Solutions using Neo4j
Neo4j GraphTalk Copenhagen - Next Generation Solutions using Neo4j Neo4j GraphTalk Copenhagen - Next Generation Solutions using Neo4j
Neo4j GraphTalk Copenhagen - Next Generation Solutions using Neo4j Neo4j
 
Transactional Streaming: If you can compute it, you can probably stream it.
Transactional Streaming: If you can compute it, you can probably stream it.Transactional Streaming: If you can compute it, you can probably stream it.
Transactional Streaming: If you can compute it, you can probably stream it.jhugg
 
iPads and SMART Boards - Making the Most of Both
iPads and SMART Boards - Making the Most of BothiPads and SMART Boards - Making the Most of Both
iPads and SMART Boards - Making the Most of Bothkarlaholt
 
ANPR based Security System Using ALR
ANPR based Security System Using ALRANPR based Security System Using ALR
ANPR based Security System Using ALRAshok Basnet
 
How Not To Code Flex Applications
How Not To Code Flex ApplicationsHow Not To Code Flex Applications
How Not To Code Flex Applicationsjeff tapper
 

Similaire à C program for hnb atm machine original - updated - [pys] (20)

cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project
 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project
 
cbse 12 computer science IP
cbse 12 computer science IPcbse 12 computer science IP
cbse 12 computer science IP
 
Bti1022 lab sheet 3
Bti1022 lab sheet 3Bti1022 lab sheet 3
Bti1022 lab sheet 3
 
A computer shop management system
A computer shop management system A computer shop management system
A computer shop management system
 
LAB_MANUAL_cpl_21scheme-2.pdf
LAB_MANUAL_cpl_21scheme-2.pdfLAB_MANUAL_cpl_21scheme-2.pdf
LAB_MANUAL_cpl_21scheme-2.pdf
 
Alliance 2017 - What's New and Coming Up in Dynamics CRM
Alliance 2017 - What's New and Coming Up in Dynamics CRMAlliance 2017 - What's New and Coming Up in Dynamics CRM
Alliance 2017 - What's New and Coming Up in Dynamics CRM
 
The future of customer service handout
The future of customer service handoutThe future of customer service handout
The future of customer service handout
 
OWASP Poland Day 2018 - Anthony Fielding and William Jardine - Common App Vulns
OWASP Poland Day 2018 - Anthony Fielding and William Jardine - Common App VulnsOWASP Poland Day 2018 - Anthony Fielding and William Jardine - Common App Vulns
OWASP Poland Day 2018 - Anthony Fielding and William Jardine - Common App Vulns
 
Fraud prevention is better with TigerGraph inside
Fraud prevention is better with  TigerGraph insideFraud prevention is better with  TigerGraph inside
Fraud prevention is better with TigerGraph inside
 
how to remove graphics card.pdf
how to remove graphics card.pdfhow to remove graphics card.pdf
how to remove graphics card.pdf
 
Relational Operators in C
Relational Operators in CRelational Operators in C
Relational Operators in C
 
Credit card fraud detection using python machine learning
Credit card fraud detection using python machine learningCredit card fraud detection using python machine learning
Credit card fraud detection using python machine learning
 
Share Credit_Card_Fraud_Detection_ML_MP (1).pptx
Share Credit_Card_Fraud_Detection_ML_MP (1).pptxShare Credit_Card_Fraud_Detection_ML_MP (1).pptx
Share Credit_Card_Fraud_Detection_ML_MP (1).pptx
 
Neo4j GraphTalk Copenhagen - Next Generation Solutions using Neo4j
Neo4j GraphTalk Copenhagen - Next Generation Solutions using Neo4j Neo4j GraphTalk Copenhagen - Next Generation Solutions using Neo4j
Neo4j GraphTalk Copenhagen - Next Generation Solutions using Neo4j
 
Transactional Streaming: If you can compute it, you can probably stream it.
Transactional Streaming: If you can compute it, you can probably stream it.Transactional Streaming: If you can compute it, you can probably stream it.
Transactional Streaming: If you can compute it, you can probably stream it.
 
iPads and SMART Boards - Making the Most of Both
iPads and SMART Boards - Making the Most of BothiPads and SMART Boards - Making the Most of Both
iPads and SMART Boards - Making the Most of Both
 
ANPR based Security System Using ALR
ANPR based Security System Using ALRANPR based Security System Using ALR
ANPR based Security System Using ALR
 
Introduction to Six Sigma
Introduction to Six SigmaIntroduction to Six Sigma
Introduction to Six Sigma
 
How Not To Code Flex Applications
How Not To Code Flex ApplicationsHow Not To Code Flex Applications
How Not To Code Flex Applications
 

Dernier

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 

Dernier (20)

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 

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; }
  • 22.
  • 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