Solved

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

Posted on 2008-06-21
5
5,369 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

685 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