public static double calcTip(double bill, double RATE)
{
double tip;
tip = bill * RATE;
System.out.println("The tip should be at least " + tip);
return tip; // try to return the value of the tip
}
try to return the value of the tip because your method is calculating for the tip right?
and you need its value.. (unless you will make another method that will return the tip) something like
getCalculatedTip() method. that wil lreturn the value of the tip...
so after calculating all the bills and rate.. and assigining it to the tip,then
return the value of the tip
i agree with them.. in this case you must declare a return value for the method calcTip..
if you make that void.. that will be limitted in use(almost not usefull) because you are just calculating the tip..
you have to get the value of the tip right? so you have to return it...