------------------------------------------------- TCO #1– Given a simple business problem, design and desk-check a solution algorithm that is expressed in terms of pseudocode or program notes and input-process-output (IPO) analysis leading to a flow chart.
-------------------------------------------------
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. 1. Show the result of each pseudocode program. 2. Also rewrite the pseudocode statements using Assignment statements.
Rubric:
When completed compile the following documents together neatly in 1 & 2 order: 1) This instruction sheet first 2) Your answer sheet, second
Point distribution for this activity: Pseudocode Activity | Document: | Points possible: | Points received | Problem #1 | 6 | | Problem #2 | 6 | | Problem #3 | 8 | | Total Points | 20 | |
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.
Output #1:
-------------------------------------------------
------------------------------------------------- Y=7
-------------------------------------------------
Pseudocode #1:
-------------------------------------------------
Declare X=0
-------------------------------------------------
Declare Y=5
-------------------------------------------------
X = X + 1
-------------------------------------------------
Y= Y + 1
-------------------------------------------------
Y = X + Y
-------------------------------------------------
Display “Y=” Y
-------------------------------------------------
-------------------------------------------------
Problem #2:
The variable J starts