hi, what do you mean? subtracting more than you have will create a negative value. Bryan Schulz----- Original Message ----- From: "Jes" <theeternalkid@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Monday, June 28, 2010 1:16 PM Subject: What do you guys think, pseudo code attempt Hi all,Here is an attempt at filling out an IPO chart, and putting in some pseudo code within the processing items. Let me know your thoughts. The following also contains two desk-checks.
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 __________View the list's information and change your settings at //www.freelists.org/list/programmingblind