Hello I'm working on this final project. I need to create an ATM program with a unique pin code. However every time I run the p I have done 3 hours of researching and I've decided to just ask. What am I doing wrong that it's just running the do while 3 times whenever I enter a 4 digit pin? void Pin() { do { printf("\n\t Please enter your 4 digit PIN \n "); scanf_s("%[^\n]\n", &pin); *Count = *Count + 1; if (*Count >= 3) { printf("Sorry you can't continue, contact your bank for assistance!\n"); } }while(strlen(pin) != 4 && …

Member Avatar
Member Avatar
+0 forum 4

Having problem in pin code if the user will input less than 4 digit number and a character type..could some1 help me from this.. (@@, #include<stdio.h> #include<conio.h> #include<iostream.h> float choice2(); float choice3(); float ball[11]={1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000}; float mypin; float withdraw, deposit; int transaction, myaccount; char transaction1; main() { pin:{ system("cls"); printf("Enter pin code: "); scanf("%f",&mypin); } if (mypin==1234) { myaccount=0; } else if(mypin==2345) { myaccount=1; } else if(mypin==3456) { myaccount=2; } else if(mypin==4567) { myaccount=3; } else if(mypin==5678) { myaccount=4; } else if(mypin==6789) { myaccount=5; } else if(mypin==7890) { myaccount=6; } else if(mypin==8901) { myaccount=7; } else if(mypin==9012) { myaccount=8; } else …

Member Avatar
Member Avatar
+0 forum 11

Hi DW We want to run an experiment in our lab on ATM, we just want to keep it simple and easy, So far I've just created the two forms and since I've discorvered that most of the ATM's are running a Windows OS which I saw it in one garage so I just decided to start this experiment to see if it is really posible to run a Windows Application form project on an ATM but the problem with the ATM is It screen they use a special small screen to secure and they also use the special keyboard …

Member Avatar
Member Avatar
+0 forum 2

i need help on how to program atm with console application

Member Avatar
Member Avatar
+0 forum 2

DEPOSIT and WITHDRAWAL ERROR MESSAGE: Input Amount:Exception in thread "main" java.lang.NullPointerException at Soft_eng.ATM.main(ATM.java:226) there is a logic error or whatever error in deposit and withdrawal. :( there is a little problem in new account. when the system reaches 11 records it cause to force shutdown of this atm system. [CODE] package Soft_eng; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class ATM { public static void main(String[]args){ BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in)); int menu = 0; //ung choices nia sa main menu int ctr = 0; // count of total no. of students String choice = ""; //answering yes or …

Member Avatar
+0 forum 0

if u will try to run this, while looking at the codes ull know my mistake, the thing here is when i choose "b" it will show the balance, the a question like this will open up: "Would you like to generate bank slip?" if yes it should go in this part of the code: [CODE]else if (ans == 0); // yes { JOptionPane.showMessageDialog(null, "BALANCE INQUIRY \n AMOUNT BALANCE: "+ bal+ "\nPrinting Bank slip....."); } }[/CODE] but it doesnt, thats my problem please help me thank you

Member Avatar
Member Avatar
+0 forum 3

i dont know that my error is, my code for balance is not working properly and im having a problem with my if else statements, they say i lack this "{" but i dont know where to put it [CODE] { /** * @param args */ public static void main(String[] args) { String a =(JOptionPane.showInputDialog(null, "Automatic Teller Machine\n [B] Balance Inquiry\n [D]Deposit\n [W] Withdrawal\n [Q] Quit\n Select you Options: ","Automatic Teller Machine",JOptionPane.PLAIN_MESSAGE)); String B= "B"; String D="D"; String W="W"; float balance= 0; int deposit = 0; int withdraw= 0; int bal = 0; int wht = 0; int ans = …

Member Avatar
Member Avatar
+0 forum 3

So here it is, this is my new problem, we were assigned to create a simple ATM Machine: Automatic Teller Machine [B] Balance Machine [D] Deposit [W] Withdrawal [Q] Quit Select you option: (input letter here) when i choose balance this window should pop out: Your Balance is 0.00 OK ( <--that "ok" is in showConfirmDialog) this is the code that i did but cant figure out what is the error in there! this program should accept either small or big letter [CODE]public static void main(String[] args) { // TODO Auto-generated method stub String a =(String)(JOptionPane.showInputDialog(null, "Automatic Teller Machine\n [B] …

Member Avatar
Member Avatar
+0 forum 18

i'm a total beginner and don't know how to do this: MYBANK ATM MENU FORMAT: You will be submitting the C++ code as a CPP file. The source code file should use self documenting code and additional comments (as required) to improve code readability. The source code file must contain a file header. The completed Assignment must be submitted via Blackboard. No e-mails please. Document name must be : lastName_Assignment_4 Your code must be saved as C++ file. The source code file must contain a file header formatted as specified below. The header information must be complete and accurate. FILE …

Member Avatar
Member Avatar
+0 forum 1

[code]import java.awt.*; import javax.swing; public class ATMko extends JFrame { JPanel p1; JButton b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14; JTextField t1; Container c= getContentPane(); public ATMko() { t1=new JTextField(" ",100); b1=new JButton("1"); b1.setBackground(Color.GRAY); b1.setForeground(Color.BLACK); b2=new JButton("2"); b2.setBackground(Color.GRAY); b2.setForeground(Color.BLACK); b3=new JButton("3"); b3.setBackground(Color.GRAY); b3.setForeground(Color.BLACK); b4=new JButton("4"); b4.setBackground(Color.GRAY); b4.setForeground(Color.BLACK); b5=new JButton("5"); b5.setBackground(Color.GRAY); b5.setForeground(Color.BLACK); b6=new JButton("6"); b6.setBackground(Color.GRAY); b6.setForeground(Color.BLACK); b7=new JButton("7"); b7.setBackground(Color.GRAY); b7.setForeground(Color.BLACK); b8=new JButton("8"); b8.setBackground(Color.GRAY); b8.setForeground(Color.BLACK); b9=new JButton("9"); b9.setBackground(Color.GRAY); b9.setForeground(Color.BLACK); b10= new JButton("0"); b10.setBackground(Color.GRAY); b10.setForeground(Color.BLACK); b11=new JButton("END"); b11.setBackground(Color.RED); b11.setForeground(Color.BLACK); b12=new JButton("Enter"); b12.setBackground(Color.GREEN); b12.setforeground(Color.BLACK); b13=new JButton("Cancel"); b13.setBackground(Color.YELLOW); b13.setforeground(Color.BLACK); b14=new JButton("000"); b14.setBackground(Color.GRAY); b14.setforeground(Color.BLUE); c.setLayout(new GridLayout()); b1.setBounds(50,50,20,20); b2.setBounds(50,50,20,20); b3.setBounds(50,50,20,20); b4.setBounds(50,50,20,20); b5.setBounds(50,50,20,20); b6.setBounds(50,50,20,20); b7.setBounds(50,50,20,20); b8.setBounds(50,50,20,20); b9.setBounds(50,50,20,20); b10.setBounds(50,50,20,20); b11.setBounds(50,60,20,20); b12.setBounds(50,60,20,20); b13.setBounds(50,60,20,20); b14.setBounds(50,60,20,20); p1.setLayout(new GridLayout()); …

Member Avatar
Member Avatar
+0 forum 8

Hello I'm new at using c++ and new at this forum as well, I'm wondering if you could help me with my atm project. Could you please show how to make my program accept pin number but display ***** or any other character,[ICODE][/ICODE] instead of showing numbers when inputting them? thank you very much in advance! More power! #include <iostream.h> #include <conio.h> #include <stdlib.h> main() { int newpin1, newpin2; clrscr(); cout <<"Change PIN"; cout <endl; clrscr(); cout <<"Please Enter Your New PIN"<<endl; cin >>newpin1; clrscr(); cout <<"Please Re-enter Your New PIN"<<endl; cin >> newpin2; clrscr(); if (newpin1 == newpin2) { …

Member Avatar
Member Avatar
+0 forum 4

I am trying to figure out what I am missing to get this to work. I am not sure how to get the account balance to change as the user continues to do more transactions. Here is the code I've written so far but now I'm stuck. import math [CODE]def getInput(): account number = input(“Enter your account number:”) x= 100.11 print("Account Balance is: x") print(“\nEnter your choice of task.”) nextTask = input(“D to make a deposit:, ”\ “W to make a withdraw: ”) ammount = float(input("Enter ammount:") return nextTask def doDeposit(add): deposit = x+ammount print(”\nYour new balance is:”, deposit) def …

Member Avatar
Member Avatar
+0 forum 2

I am working on an ATM machine project for my college class. It's in its early stages but here what I have so far. [CODE] /** * * @author Ty */ import java.util.Scanner; public class Main { private double currentBal =1000; Scanner input = new Scanner(System.in); public void mainMenu(){ int selection; System.out.print("Welcome to the Automated Teller Machine!\n"); System.out.println("Select from the following menu options below:\n"); System.out.println("========================"); System.out.println("| [1] Check Balance |"); System.out.println("| [2] Withdrawal |"); System.out.println("| [3] Deposit |"); System.out.println("| [4] Exit |"); System.out.println("========================"); System.out.print("Please select your option now: "); selection =input.nextInt(); switch (selection){ case 1: viewBalance(); break; case 2: withdrawFunds(); …

Member Avatar
Member Avatar
+0 forum 3

hi i m new to Haskell, i need help in the deposit money in this simple atm bank system the problem shown during enter amount on deposit" Program error: Prelude.read: no parse" below is the code.Please help.Thank you [CODE]import System.IO start :: IO () start = do putStrLn "------------------" putStrLn "---- ATM Bank ----" putStrLn "------------------" putStrLn "" putStrLn "1- Login" putStrLn "" putStrLn "2- Exit" putStrLn "" putStrLn "Enter your choice: " opt <- getLine if (opt == "1") then do validation else do putStrLn "Thank you for using Bank ATM" mainMenu :: IO () mainMenu = do putStrLn …

Member Avatar
Member Avatar
+0 forum 1

At the [URL="http://www.blackhat.com/"]Black Hat[/URL] conference in Las Vegas, Barnaby Jack gave a demonstration of how he learned to crack the security of various stand alone ATM's. While they have long been at risk for physical theft (someone stealing or physically breaking into the internal safe of the ATM itself), this is a rather easy security matter; however, as the demonstration showed, securing the ATM's from enterprising hackers may not have been a big enough of a concern for some ATM companies. [ATTACH=right]16232[/ATTACH]Jack, who works for IOActive as the Director of Security Research, bought two stand alone ATM machines and began …

Member Avatar
+0 forum 0

The End.