変数が直接入力された場合(つまり、(5.00、20.00)、変更は完全に計算されますが、値を購入と金額に置き換えても、変更は計算されませんか?
public static void makeChange()
{
double purchase;
double tendered;
Scanner scan = new Scanner (System.in);
System.out.println ("How much was the Purchase?");
purchase = scan.nextDouble();
System.out.println ("Amount Tendered");
tendered = scan.nextDouble();
System.out.println("Processing Transaction");
int ch[] = cd.makeChange(purchase, tendered); // does not calculate change correctly
...continued