May 2021 3 42 Report
how to do this java eclipse classic problem?

Problem:

During a special sale at a store, a 10% discount is taken on purchases over $10.00. Write a program 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

Update:

use If and Switch method.

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 QUIZLS.COM - All rights reserved.