can someone help me with this homework, what should i need to do?
Ask scanner to type 5 different product price (double). Calculate the discount from 10% if the cost of product is from 20 - 60, 20% if the cost its from 60 - 100 and 30% if it exceeds 100.
And the result need to be
The total cost of products: TOTALCOST The % of discount: % The value of discount: the discount of the total cost The cost with discount: Calculated cost with discount
I've one the first part to ask the scanner for the total cost, but i don't know how to use the discout percentage....
Aucun commentaire:
Enregistrer un commentaire