Question: I need to know what I'm missing in this code, its just the statement in java that it wants. Online Book Merchants offers premium customers

 I need to know what I'm missing in this code, its

I need to know what I'm missing in this code, its just the statement in java that it wants.

Online Book Merchants offers premium customers 1 free book with every purchase of 5 or more books and offers 2 free books with every purchase of 8 or more books. It offers regular customers 1 free book with every purchase of 7 or more books, and offers 2 free books with every purchase of 12 or more books. Write a statement that assigns freeBooks the appropriate value based on the values of the boolean variable isPremiumCustomer and the int variable nbooksPurchased. SUBMIT met 1 if (isPremiumCustomer == true) 21 3 if (nbooksPurchased >= 8) 4 freeBooks = 2; 5 else if (nbooksPurchased >=5 && nbooksPurchased = 12) 11 freeBooks = 2; 12 else if (nbooksPurchased >= 7 && nbooksPurchased

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!