2. Compute the cost based on the following: if the quantity is less than 10 the cost is quantity times price. If the quantity ordered is 10 or more, there is a 10% discount. Print a message that there...


Java


2. Compute the cost based on the following:<br>if the quantity is less than 10 the cost is quantity times price.<br>If the quantity ordered is 10 or more, there is a 10% discount. Print a message<br>that there is a 10% discount and print the discounted price. Calculate the discounted<br>cost.<br>Print the cost, with exactly 2 decimal places. So if 10 were ordered at 12.50 you would<br>print:<br>Discount of 10% applies: Discount of 1.25 per item. Discounted price is 11.25<br>Cost is 112.50<br>If 5 were ordered you would print:<br>Cost is 62.50 (5 x 12.50)<br>

Extracted text: 2. Compute the cost based on the following: if the quantity is less than 10 the cost is quantity times price. If the quantity ordered is 10 or more, there is a 10% discount. Print a message that there is a 10% discount and print the discounted price. Calculate the discounted cost. Print the cost, with exactly 2 decimal places. So if 10 were ordered at 12.50 you would print: Discount of 10% applies: Discount of 1.25 per item. Discounted price is 11.25 Cost is 112.50 If 5 were ordered you would print: Cost is 62.50 (5 x 12.50)

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here