Answer:
The value of discountRate would be 0.01
Explanation:
double discountRate = 0.0;
int purchase = 1250;
if (purchase > 1000)
discountRate = .05;
if (purchase > 750)
discountRate = .03;
if (purchase < 2500)
discountRate = .01;
else discountRate = 0;
discountRate is declared as 0.0 then purchase is 1250. But the entire if statement is sequential, that is; all the if statement are executed.
first if-statement assign .05 to discountRate because purchase is greater than 1000.
Next if-statement re-assign .03 to discountRate because purchase is greater than 750.
The last if-statement re-assign .01 to dicountRate because purchase is less than 2500. Since this is the last if statement executed, the value of discountRate is .01
Answer: if then elseif
Explanation:
It can be a chain of statement as shown below:
while(condition)
{
if( condition){
Then {
}
}
else if {
}
}
You answer to the question is C
Answer:
I believe it's 20% I could be wrong just thinking of it many teenagers don't really come out and say anything and are too afraid to tell anyone by possibly being wrong or putting themselves into more danger
Answer: True
Explanation:
In shielded twisted pair (STP) we have two wires which are twisted together and they have a shielding layer outside them which helps them to avoid interference from outside noise. STP thus having the advantage with an additional layer of shield covering the two wires together makes them more durable compared to unshielded twisted pair.