## Invitation to Computer Science 8th Edition

Step 1 Set value of sum to 0 Step 2 Set the value of $i$ to 1 Step 3 While $(i \leq 14)$ perform Step 4 through Step 5 Step 4 Read in value for Score$_{i}$ and add it to sum Step 5 Add 1 to the value of $i$ Step 6 Read in value for Score $E$ Step 7 Print out "The average is $\left(\frac{s u m+2 \cdot S c o r e_{E}}{15}\right)$" Step 8 Stop
Step 1 Set value of sum to 0 Step 2 Set the value of $i$ to 1 Step 3 While $(i \leq 14)$ perform Step 4 through Step 5 Step 4 Read in value for Score$_{i}$ and add it to sum Step 5 Add 1 to the value of $i$ Step 6 Read in value for Score $E$ Step 7 Print out "The average is $\left(\frac{s u m+2 \cdot S c o r e_{E}}{15}\right)$" Step 8 Stop