-------------------------------------------------
TCO 1—Given a simple business problem, design and desk-check a solution that is expressed in terms of pseudocode, flowchart, and/or input-process-output (IPO) diagrams.
-------------------------------------------------
Assignment This activity will assist you in the understanding of how output should appear after statements are executed (results) and how to write proper pseudocode, as well as the relationship between pseudocode, flowcharts, and programming language code. 1. Show the result of each pseudocode program. 2. Also rewrite the pseudocode statements or flowchart using Assignment statements.
Rubric
When completed, compile the following documents together neatly in order. 1) This instruction sheet first 2) Your answer sheet second
Point distribution for this activity: Activity | Document | Points possible | Points received | Problem #1 | 6 | | Problem #2 | 6 | | Problem #3 | 8 | | Total Points | 20 | |
Example
The variable A starts with value 5.
Add 1 to A
Display the value of A on the screen.
Example Output
-------------------------------------------------
------------------------------------------------- 6
-------------------------------------------------
Example Pseudocode
-------------------------------------------------
------------------------------------------------- Let A = 1
-------------------------------------------------
Let A = A + 1
-------------------------------------------------
Output A
-------------------------------------------------
Example flowchart (use MS Visio and paste flowchart here or submit in separate file)
Problem #1
The variable X starts with the value 0. The variable Y starts with the value 5. Add 1 to X. Add 1 to Y. Add X and Y, and store the result in Y. Display the value in Y on the screen.