Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Java //leblake 5. Pay Fee Suppose that you work for the a payment processing service called PayFee. Your job is to write a program

image text in transcribedimage text in transcribed

Using Java

//leblake

5. Pay Fee Suppose that you work for the a payment processing service called PayFee. Your job is to write a program to compute and display the fee that PayFee charges money receivers. The fee is computed according to the following payment rules Payments up to (and including 5500 have a fat fie of s Payments over S500 (but under $5000) have a fee of 1% or S20, whichever is higher. Payments of S5,000 (but under $10,000) and over have a fee of 2% or $120, whichever is higher. Payments of $10,000 and over are subject to fees as follows The first S 10,000 have a fee of 2% The next S5,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 S5,000 ($150 fee), and 4% on the last $25,000 (S1000 tax). Ask the user for their payment amount (real number) and compute the amount of the fee that they owe (real number Example: java PayFee 4500. 0 RESULT: 45. 0 Assume the user will only input a real number greater than zero. You must use the IO module to read inputs and to output your answer. DO NOT add any import statements to PayFee.java DO NOT change the headers of ANY of the given methods DO NOT use System.exit)

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

1. What is community psychology?

Answered: 1 week ago

Question

What has been your desire for leadership in CVS Health?

Answered: 1 week ago