If the variables are entered directly (i.e (5.00, 20.00) it calculates the change perfectly, but if I substitute the values with purchase and amount it doesn't calculate the change?
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