Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago