Question: Dont declare any class fields Declare only local variables Write your code in the file DonateToPaws,java, your file has to have this exact name with

Dont declare any class fields

Declare only local variablesDont declare any class fields Declare only local variables Write your code

Write your code in the file DonateToPaws,java, your file has to have this exact name with D, Tand P capitalized Imagine that you work for an animal donation processing service called DonateToPaws. Donate ToPaws charges money receivers the following fees: The first $150 has a flat fee of S3. (any donation up to $150 has a flat fee of $3 Donations over $150 (but under $1500) have a fee of 4% or $8, whichever is higher. Donations of $1,500 (but under $15,000) and over have a fee of 1% or $20, whichever is higher. Donations of $15,000 and over are subject to ffees as follows) The first $15,000 have a fee of 1% The next $4,000 have an additional fee of 2% Anything more will demand an additional fee of 3% For example, a donations of $40,000 would be subject to $860 fee: 1% on the first $15,000 ($150 fee), 2% on the next $4,000 ($80 fee), and 3% on the last $21,000 $630 tax) Write a method that takes as an argument the donation amount received (real number) and outputs the fee owned freal number). Use the following method signature: public static double donationFee (double donationAmount) Assume no errors

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!