+ 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​

26th Oct 2020, 6:56 AM
Dev Verma
Dev Verma - avatar
1 ответ
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.
4th Dec 2020, 7:30 AM
Armin Akhavan
Armin Akhavan - avatar