Computer Science, asked by JoyeetaDas, 10 months ago

enter name, purchase amount, and discount percent of 10 customers using array. Print name, discounted value and final price after discount in java.​

Answers

Answered by SonalRamteke
1

Answer:

-1

Down vote

In the code block where you compare prices for the min, you could just factor in the discount for each item.

Try replacing:

if (item[i].getItemPrice() < min)

with,

if (item[i].getItemPrice() * item[i].getItemDiscount() < min)

Hope that helps! It's been a while since I've used

Answered by Anonymous
1

Answer:

I KNOW I AM GOOD BOY.........

Similar questions