+ 1
Java program question please check description
Roshni purchased two books from a "Book Fair. She also availed discounts on the books. The bookson which the printed price was more than 1000 the discount was 35% and for others, discount was10%. Input the printed price of the two books she purchased. Print the discount she got on each book. Print the total amount she paid. [15]Write a java program
1 Réponse
0
Use this for book_cost = (int) Math.ceil(price * discount percentage)
By if statement you can define which book should received 10 or 35 .
I hope u got your answer.