[solved]-1 True False Write Pseudocode Compute Result Value Formula X Y Z P Q R Following Pseudocod Q38996780
1) True|False: You are about to write pseudocode to compute theresult value of the formula: ( X * Y – Z * P / Q + R ) Thefollowing pseudocode is complete and correct. Compute X * Y, andput its result to T1 ; Compute Z * P, and put its result to T2 ;Compute T2 / Q , and put its result to T3 ; Compute T1 – T3, andput its result to T4 ; Compute T4 + R, and put its result to T5 ;The final result value is in T5 ;
2)
True|False: Given two variables X and Y, you are aboutto write pseudocode to output the larger number.
The following pseudocode is complete andcorrect.
If X <= Y then output X, and stop ;
Output Y, and stop;
3)
True|False: Given four variables P, X, Y and Z, you areabout to write pseudocode to output the smallestnumber.
The following pseudocode is complete andcorrect.
If P>=X and P>=Y and P>=Z then output P, andstop ;
If X>=P and X>=Y and X>=Z then output X, andstop ;
If Y>=P and Y>=X and Y>=Z then output Y, andstop ;
Output Z, and stop ;
4)
True|False: Given three variables X, Y and Z, you areabout to write pseudocode to output the middle number.
The following pseudocode is complete andcorrect.
If (X >= Y and X <= Z) then output X, and stop;
If (X >= Z and X <= Y) then output X, and stop;
If (Y >= X and Y <= Z) then output Y, and stop;
If (Y >= Z and Y <= X) then output Y, and stop;
Output Z, and stop ;
Expert Answer
Answer to 1) True|False: You are about to write pseudocode to compute the result value of the formula: ( X * Y – Z * P / Q + R )… . . .
OR

