Answer:
$1.55
Step-by-step explanation:
Answer:
Number of weeks in a year = 52 weeks
If in a normal year when each package of flea treatment lasts for 4 weeks, then in a year there Jim's dog will have to be treated for
Where as, when the fleas are bad in a year, the treatment lasts for only 3 weeks.
Then in a year Jim's dog would get
So Jim's dog will get 17- 13 =4 treatments more.
4 treatments that are made in 3 weeks each will be 4×3 =12 weeks more treatment
Franck's answer is better (using ~), but I just wanted to point out that the conditional in yours is slightly redundant. It's easy to forget that, since you already have a boolean value, you don't need to perform a comparison in your conditional. So you could have just done this...
<span>if x
x = false;
else
x = true;
<span>end</span></span>