Ashley P.

asked • 11/09/19

Java Program / methods

One sales shop offer following discount rates to customers based on their bill value.

Bill value Range Discount rate

bill value >= 10000 discount 20%

bill value >= 5000 disocunt 10%

bill value >= 2000, discount 5%

2000 > bill value - discount 0%

Write Java program perform following actions

 Write a method to input the bill value from the keyborad. (readValue())

 Write a method to find the payable amount after calculation the discount. (calDiscount())

 Write a main method to call readValue() and calDiscount() methods.

1 Expert Answer


Patrick B. answered • 11/11/19

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.