Solved

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

Posted on 2008-06-21
5
4,951 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
Comment Utility
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
Comment Utility
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
Comment Utility
THanks!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

763 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

9 Experts available now in Live!

Get 1:1 Help Now