During a special sale at a store, a 10% discount is taken on purchases over $10.00. Write a program Discount.java that asks for the amount of purchases, and then calculates the discounted price. The purchase amount will be input in cents (as an integer):
Enter amount of purchases:
2000
Discounted price: 1800
Use integer arithmetic throughout the program.
During a special sale at a store, a 10% discount is taken on purchases over $10.00. Write a program Discount.java that asks for the amount of purchases, and then calculates the discounted price. The purchase amount will be input in cents (as an integer):
Enter amount of purchases:
2000
Discounted price: 1800
Use integer arithmetic throughout the program.
============================================================================
have u got the codes??? and its not late
Didn't get your reply until today, so I guess as another 2 days have gone by it's now too late.
This is the reason saying the problem is urgent is counter productive. All it does is make people not answer the post as they think it will be too late.
BTW we don't supply code but will help you to write it for yourself if you show some effort.
Bookmarks