this question has answer here: is java “pass-by-reference” or “pass-by-value”? 74 answers i took cs-1 course in c++ , i'm @ new university , use java here. i've been learning new syntax , doing old c++ labs , i've hit wall pass-by-reference one. my understanding far java pass-by-value how can achieve goal of problem? write program tells coins give out amount of change 1 cent 497 cents. since wouldn’t use pennies, need round cents near 5 or 10’s. example, if amount 368 cents, rounded number 370 cents , if amount 367 cents, rounded number 365 cents. change 1 toonie (two dollar coin), 1 loonie, 2 quarters, 2 dimes 370 cents. use coin denominations of 2 dollars (toonie), 1 dollar (loonie), 25 cents (quarters), 10 cents (dimes), , 5 cents (nickels). program use following function: void computecoin(int coinvalue, int &number, int &amountleft);