Solved

What would be the pseudocode and code for an ATM machine in Visual Basic?

Posted on 2008-06-21
5
5,081 Views
Last Modified: 2013-12-25
Can anyone help me with the pseudocode of an ATM machine? I have only taken Java and C++ courses before, and Visual Basic is easy but I've never had to write pseudocode for a program before.

I have already designed the interface. It has a label at the top which displays messages to the user. Under the label is a keypad of numbers 0-9 with "Clear" and "Exit" buttons. To the right of the keypad are four buttons: "Deposit", "Withdraw", "Inquire" and "Exit".

When the ATM machine program is started, it will display a message to the user that says something like "Welcome to the Bank ATM". The first thing that it does is ask for a 4-digit PIN from the customer. If the PIN is not four digits, it displays an error.If it is the correct PIN, the user is allowed to select from the following:

Deposit: Deposit an amount of money.

Withdraw: Withdraw an amount of money.

Inquire: Check what the balance is.

Exit: Exit..


I have browsed the internet for examples of ATM machines in Visual Basic but they're all from different versions of VB. Help is much appreciated. Thank you.
0
Comment
Question by:regalone
  • 2
5 Comments
 

Author Comment

by:regalone
ID: 21839006
I am sorry.... I shouldnt have said code. I just want a general idea of the pseudocode for it? Im so used to Java and C++ that this is a little confusing. I know its something like

Start Program
User enters PIN
If =/ 4 digits
     Error
Else
     Bring to main menu
Deposit
Withdraw
Inquire
Exit

Its the last ones Im having a problem with (except Exit, self explanatory)

0
 
LVL 18

Accepted Solution

by:
vbturbo earned 50 total points
ID: 21841096
Hi

Try read this article.
It gives you the Conceptual and models the object oriented approach on how an ATM machine operates.
It also includes pseudocode to some extend , so you should have start point

http://patrickliendo.com/samplework/umlproject.doc

Hope this helps you on the way
happy coding

vbturbo
0
 

Author Closing Comment

by:regalone
ID: 31469470
THanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now