Question: Java Create an array of Book variables to store references to the various book objects (classic, novel, educational). In a loop, calculate the cost of
Java
Create an array of Book variables to store references to the various book objects (classic, novel, educational). In a loop, calculate the cost of each book type and the sum total of the order. If the book is of classic type and is more than 50 years old, give the cost a 35% discount. If the book is of novel or education type and is more than 5 years old, give the cost a 12% discount.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
