Question: I need to turn this into a Flowchart. Pseudocode Language Constructs Compute var1 as the sum of x andy Assign expression to var2 Increment counter1
Pseudocode Language Constructs Compute var1 as the sum of x andy Assign expression to var2 Increment counter1 a o o Input/Output Input: Get var1. var2. Output. Display var1, var2. Selection Single-Selection IF 1. IF condition THEN (IF condition is true, then do subordinate statement 1, etc. If condition is false, then skip statements) 1.1 statement 1 1.2 etc 2. IF condition THEN (IF condition is true, then do subordinate statement 1, etc. If condition is false, then skip statements and execute statements under ELSE) 2.1 statement 1 2.2 etc. 3. ELSE (else if condition is not true, then do subordinate statement 2, etc.) 3.1 statement 2 3.2 statement 3 4. SWITCH expression TO 4.1 case 1: action1 4.2 case 2: action2 4.3 etc. 4.4 default: actionx a Repeion 5. WHILE condition (while condition is true, then do subordinate statements) 5.1 statement 1 5.2 etc DO WHILE structure (like WHILE, but tests condition at the end of the loop. Thus, statements in the structure will always be executed at least once.) 6. DO 6.1 statement 1 6.2 etc 7. WHILE condition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
