Answered step by step
Verified Expert Solution
Question
1 Approved Answer
// 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started