Answer:
- var projected_fee = 6000;
-
- for(var i = 1; i <= 5; i++){
- projected_fee = projected_fee * 0.02 + projected_fee;
- console.log("$" + projected_fee.toFixed(2));
- }
Explanation:
Firstly, create a variable, projected_fee, and set the initial tuition fee value to it (Line 1).
Next, user a for loop that run for 5 times to repeatedly calculate the projected_fee based on 2 percent of increment rate (Line 4) and display the projected fee to console terminal (Line 5). The output should be
$6120.00
$6242.40
$6367.25
$6494.59
$6624.48
It would be a or c when she is writing a childerns story
I = 0
while( i < ( n * 2 ) ):
s += '*'
i += 1
Answer:
8
12
Explanation:
I made the code a bit easier to understand then worked out how it would go. Here's what I did.
number = 4
repeat until number = 8:
write 2 * number
number = number + 2
Following this itenary, we have, the system first writes "8" as it multipled 4 by 2. Number is now equal to 6.
Next repetition, the system writes "12" as it multipled 6 by 2. Now, number = 8. The proccess now stops as number is now equal to 8.