Solved

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

Posted on 2008-06-21
5
5,447 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

732 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