A PHP Error was encountered

Severity: Warning

Message: fopen(/home/answnniz/solutionspile.com/system/sessions/ci_session944a58c9c2e3155f933fc82f52f383df1e3de424): failed to open stream: Disk quota exceeded

Filename: drivers/Session_files_driver.php

Line Number: 176

Backtrace:

File: /home/answnniz/solutionspile.com/index.php
Line: 367
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Failed to read session data: user (path: /home/answnniz/solutionspile.com/system/sessions)

Filename: Session/Session.php

Line Number: 143

Backtrace:

File: /home/answnniz/solutionspile.com/index.php
Line: 367
Function: require_once

[Solved]: Part 1 Review the below algorithm that uses sequ
Home / Expert Answers / Computer Science / part-1-review-the-below-algorithm-that-uses-sequence-selection-and-iteration-repetition-to-add-pa679

(Solved): Part 1 Review the below algorithm that uses sequence, selection, and iteration (repetition) to add ...



Part 1 Review the below algorithm that uses sequence, selection, and iteration (repetition) to add all the even numbers in a list and print out the sum. Notice how indentation and curly brackets are used to clarify the different parts of the algorithm. This algorithm contains examples of all three types of control structures (sequence, selection, and repetition). The lines are numbered for convenience. For your portfolio project, you will be answering the following questions and creating your own pseudocode algorithm and flowchart. Which line(s) of the algorithm contains a repetition control structure? Remember a control structure can consist of multiple statements. Which line(s) of the algorithm contains a selection control structure? If you run this algorithm on the list of numbers (

5,10,-2,-3,7,8,12

), what would it print? When tracing through an algorithm, write down the variables (total and number) and act as if you are the computer executing each line of code and change the values of the variables as needed. Suppose you had a list of positive numbers such as

5,10,12,13,6,7,1,3,2,1

. And suppose for each of the numbers in the list you added the number to a running total if it is even and subtracted it if it is odd, starting the total at 0 . What result would you get for this list of numbers? a. Write a pseudocode algorithm that implements the algorithm you used to calculate this total. b. Create a flowchart that correlates to your pseudocode algorithm. Feel free to use draw.io

?

to create your flowchart. Part 2 Using the techniques you learned in this course, redesign your Critical Thinking Assignment from Module 2 to make them more complex. Be sure to create a new flowchart for both. Discuss the changes you made to the projects and why you made these changes (approximately 1 paragraph each).



We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe