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:
Discounted price: 1800
Use integer arithmetic throughout the program.