Pseudocode - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Pseudocode

0w10w1 Posts: 3Member
Hey, I was wondering how would I write the refined pseudocode for this transferTo method:

[b]Java code:[/b]
public void transferTo (double dblTransferAmount, BankAccount secondAccount)
{
this.dblBalance = this.dblBalance - dblTransferAmount;
secondAccount.deposit(dblTransferAmount);
}


This is what my pseudocode for the deposit looks like:

[b]Pseudocode:[/b]
proc deposit(parameter dblDepositAmount as a double)
set dblBalance = dblBalance + dblDepositAmount
endproc

[b]Java code:[/b]
public void deposit (double dblDepositAmount)
{
dblBalance = dblBalance + dblDepositAmount;
}



Sign In or Register to comment.