Question: 9. The following algorithm correctly determines whether summing a large list of random numbers exceeds 10,000. How might you improve the algorithm to make it
9. The following algorithm correctly determines whether summing a large list of random numbers exceeds 10,000. How might you improve the algorithm to make it more efficient? (Hint: adding the numbers one-by-one is the same as "add all the numbers together") (0.5 points) Step 1: Initialize sum = 0. Step 2: Start with the first number as the sum. Step 3: Add the next element to the sum. Step 4: Repeat step 3 until all numbers have been added. Step 5: Compare sum with 10,000. 10. As a separate document, write pseudocode for folding an 8-1/2x11 sheet of paper into a paper airplane. Rather than turning this problem into Gradescope with the rest of this assignment, submit it to Canvas under the "Paper Airplane Pseudocode" assignment by Thursday, January 28th (11:45pm). You will do peer review on this algorithm similar to how you did for your initials algorithm. We encourage you to follow their algorithm step-by-step, make a paper airplane, and see if it flies! (1 point)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
