Need help with this
Hello people.. I need help with this scenario..
A customer will be given discounts based on the following conditions:
a) 10% discount if he buys more than $500
b) 5% discount if he buys more than $300
c) 2% discount if he buys more than $100
d) No discount if he buys less than $100
I can do it with the If-else statement but had problems with Switch statement and JOptionPane
If anyone could be so kind to help me.. thank you.
Homework, huh? Why don't you set the ball rolling by posting your best efforts so that we can see exactly what you're having trouble with.
What you have tried up to now? You should something first, no one here write codes for you. Show your code here if you stuck, and explain what you really want to know.