-
October 28th, 2012, 05:09 PM
#1
Urgent
Hello i need a code for this work
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|