Design an Algorithm for the following Java application that asks a customer to:
enter the quantity of items requested from a mail-order catalogue,
and the price of each item.
The program will then return & display the totalCost of the required items.
The results are formatted to one place of decimal.
Write a method called calculateCost () which returns the totalCost including discount given to the customer and stores the value in totalCost.
As a special offer the customer will receive an 11% discount if twenty or more
units of the item are purchased.
algorithm
Under discussion
Comments
- Popular
- New
- Old
You must be signed in to leave a comment
This page doesn't have any comments yet