Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases With Application To GIS

Authors: Philippe Rigaux, Michel Scholl, Agnès Voisard

1st Edition

1558605886, 978-1558605886

More Books

Students also viewed these Databases questions