1(A)
2(B)
3(E)
4(C)
5(D)
6(B)
7(C)
Write a statement that assigns freeBooks the appropriate value based on the values of the boolean variable isPremiumCustomer and the int variable nbooksPurchased is described below
Explanation:
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.
A statement that assigns freeBooks the appropriate value based on the values of the boolean variable isPremiumCustomer and the int variable nbooksPurchased. Here's what we have:
if(isPremiumCustomer = true){
if(nbooksPurchased >= 5));
freeBooks = 1;
}else if(nbooksPurchased >= 8){
freeBooks = 2;
}else {
if(nbooksPurchased >= 7);
freeBooks = 1;
}else if(nbooksPurchased >= 12){
freeBooks = 2;
}
We are getting an error of "illegal start of expression".
Two of the hints are "You are using an incorrect number somewhere in your solution" and "We think you might want to consider using: ==".
I do not want the answer, I just want pointed in the right direction.
Answer:
Well, I hope your account is working good now :)
Answer:
When possible, use public transportation, walk, or ride a bike
Explanation:
Answer:
120 Hz
Explanation:
Given that a 60 Hz sinusoidal voltage is applied to the input of a half-wave rectifier, what will be the output frequency ?
Ideally, the supply frequency will be equal to the ripple frequency.
But in a half - way rectifier, the out put frequency is twice the input sinusoidal voltage frequency.
The output frequency = 2 × 60
Output frequency = 120 Hz
Therefore, When a 60 Hz sinusoidal voltage is applied to the input of a half-wave rectifier, the output frequency is 120 Hz.