RE: What do you guys think, pseudo code attempt

  • From: "Joseph Lee" <joseph.lee22590@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Mon, 28 Jun 2010 12:21:29 -0700

Hi,
Oh, this person is talking about a possible if statement, which is as
follows:
if (remaining_balance < 0) // Read as "if the remaining balance is less than
0".
{do something;}
Else // If not...
{print out the remaining balance;}
Hope this helps...
Cheers,
Joseph

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Bryan Schulz
Sent: Monday, June 28, 2010 12:10 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: What do you guys think, pseudo code attempt

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

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.439 / Virus Database: 271.1.1/2967 - Release Date: 06/28/10
06:37:00

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

Other related posts: