10
ATM MACHINE INTERFACING SYSTEM NOR HISHAM BIN MAYIDIN MOHD HAIRUDIN BIN ABU BAKAR CHE ANI BT CHE KAR SITI HAJAR BINTI ABDUL RAJAB Faculty of Electrical and Electronics Engineering, University Malaysia Pahang 26600 Pekan, Pahang, Malaysia ABSTRACT This application allows the customers to collect cash and transact money from own account to another just by giving own her pin number. It allows authorized users to access the system by insert a valid pin number. This application also allows to change password and inquiry account balance of customers. It also enables to make transaction on the current account. It allows to investment in share market and dept paying to various department. Reducing cost to bank because does not require staff work that many to show customers. Even many advantages to users because every matter can carried out anywhere . INTRODUCTION An Automatic Teller Machine (ATM) is a computer based machine, connected to a network, that offers, as basic functions to users, access to bank account (balance, bank transfers) and retrieval of money An automated teller machine or automatic teller machine, also known as an automated banking machine, cash machine, cashpoint, cash line, or colloquially hole in the wall, is an electronic telecommunications device that enables the customers of a financial institution to perform financial transactions without the need for a human cashier, clerk or bank teller. On most modern ATMs, the customer is identified by inserting a plastic ATM card with a magnetic stripe or a plastic smart card with a chip that contains a unique card number and some security information such as an expiration date. Authentication is provided by the customer entering a personal identification number (PIN). Using an ATM, customers can access their bank deposit or credit accounts in order to make a variety of transactions such as cash withdrawals, check balances, or credit mobile phones. If the currency being 1

Report Atmmachine1

Embed Size (px)

DESCRIPTION

TRY THIS

Citation preview

ATM MACHINE INTERFACING SYSTEM

NOR HISHAM BIN MAYIDINMOHD HAIRUDIN BIN ABU BAKAR

CHE ANI BT CHE KARSITI HAJAR BINTI ABDUL RAJAB

Faculty of Electrical and Electronics Engineering, University Malaysia Pahang26600 Pekan, Pahang, Malaysia

ABSTRACT

This application allows the customers to collect cash and transact money from own account to another just by giving own her pin number. It allows authorized users to access the system by insert a valid pin number. This application also allows to change password and inquiry account balance of customers. It also enables to make transaction on the current account. It allows to investment in share market and dept paying to various department. Reducing cost to bank because does not require staff work that many to show customers. Even many advantages to users because every matter can carried out anywhere.

INTRODUCTION

An Automatic Teller Machine (ATM) is a computer based machine, connected to a network, that offers, as basic functions to users, access to bank account (balance, bank transfers) and retrieval of money

An automated teller machine or automatic teller machine, also known as an automated banking machine, cash machine, cashpoint, cash line, or colloquially hole in the wall, is an electronic telecommunications device that enables the customers of a financial institution to perform financial transactions without the need for a human cashier, clerk or bank teller.

On most modern ATMs, the customer is identified by inserting a plastic ATM card with a magnetic stripe or a plastic smart card with a chip that contains a unique card number and some security information such as an expiration date. Authentication is provided by the customer entering a personal identification number (PIN).

Using an ATM, customers can access their bank deposit or credit accounts in order to make a variety of transactions such as cash withdrawals, check balances, or credit mobile phones. If the currency being withdrawn from the ATM is different from that in which the bank account is denominated the money will be converted at an official exchange rate. Thus, ATMs often provide the best possible exchange rates for foreign travellers, and are widely used for this purpose.

1

FLOW CHART Flowchart is a diagrammatic representation of an algorithm. Flowchart are very helpful in writing program and explaining program to others. Different symbols are used for different states in flowchart. The table 1 below describes some of the symbols that are used in making flowchart. [1]

Table 1 : Symbols in flowchart

Symbol Purpose Description

Flow lineUsed to indicate the flow of logic by connecting symbols.

Terminal(Stop/Start)

Used to represent start and end of flowchart.

Input/ Output Used for input and output operation.

ProcessingUsed for arithmetic operations and data-manipulations.

DecisionUsed to represent the operation in which there are two alternatives, true and false.

Table 2 below shows the flow chart of the program that we have to create.

Table 2 : Flow Chart

2

ATM(Start)

Enter Password

CheckPassword

Deposit

Withdraw

Balance

Operation complete

End

PSEUDO CODEPseudo code (pronounced SOO-doh-kohd) is a detailed yet readable description of what a computer

program or algorithm must do, expressed in a formally-styled natural language rather than in a programming language. Pseudo code is sometimes used as a detailed step in the process of developing a program. It allows designers or lead programmers to express the design in great detail and provides programmers a detailed template for the next step of writing code in a specific programming language [2]. It resembles a computer language but avoids excessive detail by lapsing from time to time into ordinary English. This lets us specify quite a bit of the program before we have worked out all aspects of it. On larger programs, it is valuable to begin with pseudo-code and refine it in stages until it is all executable. This way we can revise and improve the design at a high level without writing any executable code, yet remain close to a form which can be made executable.

Table 3 : Pseudo code

#include <stdio.h>#include <stdlib.h>

unsigned long amount=1000, deposit, withdraw;int choice, pin, k;char transaction ='y';

void main(){ while (pin != 1234) { printf("ENTER YOUR SECRET PIN NUMBER:"); scanf("%d", &pin); if (pin != 1234) printf("PLEASE ENTER A VALID PASSWORD\n"); } do { printf("********Welcome to ATM Service**************\n"); printf("1. Check Balance\n"); printf("2. Withdraw Cash\n"); printf("3. Deposit Cash\n"); printf("4. Quit\n"); printf("******************?**************************?*\n\n"); printf("Enter your choice: "); scanf("%d", &choice); switch (choice) {

case 1:printf("\n YOUR BALANCE IS RM : %lu ", amount);break;

case 2:printf("\n ENTER THE AMOUNT TO WITHDRAW RM: ");scanf("%lu", &withdraw);if (withdraw % 100 != 0){printf("\n PLEASE ENTER THE AMOUNT IN MULTIPLES OF 100");}else if (withdraw >(amount - 500)){printf("\n INSUFFICENT BALANCE");}else{amount = amount - withdraw;printf("\n\n PLEASE COLLECT YOUR CASH");printf("\n YOUR CURRENT BALANCE IS RM:%lu", amount);}

3

break;case 3:printf("\n ENTER THE AMOUNT TO DEPOSIT RM:");scanf("%lu", &deposit);amount = amount + deposit;printf("YOUR BALANCE IS RM:%lu", amount);break;case 4:printf("\n THANK U USING ATM");break;default:printf("\n INVALID CHOICE");}printf("\n\n\n DO U WISH TO HAVE ANOTHER TRANSCATION?(y/n): \n");fflush(stdin);scanf("%c", &transaction);if (transaction == 'n'|| transaction == 'N')

k = 1;} while (!k);printf("\n\n THANKS FOR USING OUT ATM SERVICE");}

C PROGRAMMING CODE

C programming code is a general purpose, computer programming language. It supports structured programming, variable scope and recursion. While a static type system prevents many unintended operations. By design programming C, C provides constructs that map efficiently to typical machine instruction. Therefore it has found lasting use in applications that had formerly been coded in assembly language include operating systems as well as various application software for computers ranging from supercomputers to embedded systems.

The #include is a "preprocessor" directive that tells the compiler to put code from the header called stdio.h into our program before actually creating the executable. By including header files, you can gain access to many different functions-- the printf functions are included in stdio.h. The next important line is int main(). This line tells the compiler that there is a function named main, and that the function returns an integer, hence int. If you don't want a return value then use void. The "curly braces" ({and}) signal the beginning and end of functions and other code blocks. The printf function is the standard C way of displaying output on the screen. The quotes tell the compiler that you want to output the literal string as-is (almost). The '\n' sequence is actually treated as a single character that stands for a newline. C has three types to choose among alternative courses of action: if, if, else, and switch. While, for, do-while are specifies a block of one or more statements that are repeatedly executed until a condition is satisfied. [4]

Finally, at the end of the program, we return a value from main to the operating system by using the return statement. This return value is important as it can be used to tell the operating system whether our program succeeded or not. A return value of 0 means success.[3]

4

Figure 1 and Figure 2 : C code before running the program

5

RESULT AND DISCUSSION

The figures below shows the obtained results using CODE BLOCKS.

Figure 3 : Insert Pin number

Figure 4 : Check Balance

Figure 5 : Withdraw Cash

6

Figure 6 : Deposit cash

Figure 7 : Quit

7

CONCLUSION

Base on this project has been developed as the best flexible and efficient project within the available resources and time. This application allows the customers to collect cash and transact money from one account to another just by giving his/her account number. In future this ATM system be add new feature like finger print reader for authentication of user security purpose. Care has been taken at each step to make it more user friendly so that users can add new features where ever necessary while using this automated system. It may be enhanced for requirement of users.

REFERENCE

[1] http://computer.howstuffworks.com/c-programming.htm[2] http://www.programiz.com/article/flowchart-programming[3] http://www.cprogramming.com/tutorial/c/lesson1.html[4] C programming notes . Dr Zainah bt Md Zain.

8