Invitation to Computer Science 8th Edition

Published by Cengage Learning
ISBN 10: 1337561916
ISBN 13: 978-1-33756-191-4

Chapter 2 - Exercises - Page 86: 8

Answer

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

Work Step by Step

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
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.