Answer:
A statement that assigns freeBooks the appropriate value based on the values of the boolean variable isPremiumCustomer and the int variable nbooksPurchased.
if(nbooksPurchased > 4){
if(isPremiumCustomer){
freeBooks = 1;
if(nbooksPurchased > 7){
freeBooks = 2;
}
}else{
freeBooks = 0;
if(nbooksPurchased > 6){
freeBooks = 1;
}
if(nbooksPurchased > 11){
freeBooks = 2;
}
}
}else{freeBooks = 0;}
Step-by-step explanation: