Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write your code in the file DonateToPaws,java, your file has to have this exact name with D, T and P capitalized Imagine that you work

image text in transcribed
Write your code in the file DonateToPaws,java, your file has to have this exact name with D, T and P capitalized Imagine that you work for an animal donation processing service called Donate ToPaws. Donate ToPaws charges money receivers the following fees The first $150 has a flat fee of S3 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 196 or $20, whichever is higher Donations of $15,000 and over are subject to (fees as follows): The first $15,000 have a fee of 1% The next $4,000 have an additional fee of 296 Anything more will demand an additional fee of 3% For example, a donations of $40,000 would be subject to S860 fee: 1% on the first $15,000 ($150 fee), 2% on the next $4,000 ($80 fee), and 3% on the last $21,000 (S630 tas). Write a method that takes as an argument the donation amount received (real number) and outputs the fee owned (real number. Use the following method signature public static double donationFee (double donationAmount)

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions