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;

This is what my pseudocode for the deposit looks like:

proc deposit(parameter dblDepositAmount as a double)
set dblBalance = dblBalance + dblDepositAmount

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

Sign In or Register to comment.

Howdy, Stranger!

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