Bob S.

asked • 02/06/21

What is output by the code below?

 

public static void withdraw(double balance, double amount)

{

  balance -= amount;

}

 

///////////////////////////////////////////////////////////////////////////////////////

//client code in the main of a runner class

double balance = 1020.37;

double amount = 350;

withdraw(balance, amount);        

System.out.println(balance);


1 Expert Answer

By:

Larissa P. answered • 02/10/21

Tutor
4.8 (19)

Mid-Level Software Engineer

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.