Results 1 to 3 of 3
Thread: Need help with this
- 09-29-2008, 02:42 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 25
- Rep Power
- 0
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.
- 09-29-2008, 03:06 PM #2
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.
luck, db
- 09-30-2008, 04:24 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 26
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.
Bookmarks