Attempt at pseudo code, your thoughts?

  • From: Jes <theeternalkid@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Mon, 28 Jun 2010 15:05:58 -0400

Okay, here's my attempt at some pseudo code and some desk-checks. Let me know 
your thoughts.
Does it look okay?
Output: display user's checking account balance at the end of the month.
Input: Three pieces of info: His checking account balance at the start of the 
month, money deposited into his account during the month, and  money withdrawn 
from his account during the month.

Processing:

Algorithm:

First main function, Print message asking user for each piece of information. 
Used to help computer accomplish the user's goal.
Create three separate variables:
A variable for storing beginning checking account balance.
A  variable for storing deposits.
A  variable to store withdrawal.
 each variable should be created after user inputs data, and should be in the 
same order as the messages which are displayed.
 on the screen for each piece of information.

Finally, process all variables to get new account balance, and display the 
information on the screen to the user.

First desk-check
checking account balance at the beginning of the month:
2000
money deposited during the month:
775
money withdrawn during the month:
1200
Result: New balance = 1575.

 second desk-check:
checking account balance at the beginning of the month:
500
money deposited during the month:
100
money withdrawn during the month:
610
Result: -10
Something is wrong with the second desk-check. What is it?

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts:

  • » Attempt at pseudo code, your thoughts? - Jes