Question: Write your code in the file PayFee.java. You work for the a payment processing service called PayFee. PayFee charges money receivers the following fees The
Write your code in the file PayFee.java.
You work for the a payment processing service called PayFee. PayFee charges money receivers the following fees
The first $500 has a flat fee of $10.
Payments over $500 (but under $5000) have a fee of 1% or $20, whichever is higher.
Payments $5,000 (but under $10,000) and over have a fee of 2% or $120, whichever is higher.
Payments $10,000 and over are subject to fees as follows:
The first $10,000 have a fee of 2%
The next $5,000 have an additional fee of 3%
Anything more will demand an additional fee of 4%
For example, an payment of $40,000 would be subject to $1350 fee: 2% on the first $10,000 ($200 fee), 3% on the next $5,000 ($150 fee), and 4% on the last $25,000 ($1000 tax).
Ask the user for their payment amount (real number) and compute the amount of the fee that they owe (real number).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
