Question: // Write the method determineTax. The method is sent the amount of the // purchase and the tax rate. It returns a double value that
// Write the method determineTax. The method is sent the amount of the
// purchase and the tax rate. It returns a double value that is the
// amount of the tax.
// Note that the method determineTax does not print anything -- it
// just returns the value.
double m1 = determineTax(350.00, 0.06); // Michigan is 6%
double m2 = determineTax(79.99, 0.06);
double cal1 = determineTax(499.99, 0.0725); // California is 7.25%
System.out.printf("Here are the returned values: %.2f, %.2f, and %.2f ", m1, m2, cal1);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
