CIS 115 All Assignments CIS 115 All Assignments | Page 18
10. (TCO 2) Review the partial pseudocode below. What is the correct math expression to
complete the algorithm and determine 50% of a cost?
Prompt “Enter total cost: “
Input cost
Set _____
Display “50% of the cost is: “ + total (Points : 4)
11. (TCO 3 & 4) Review the pseudocode below. What will be displayed when this algorithm
executes?
Set
If ((x > 10) AND (x < 20))="">
Display “the IF path executes”
Else
Display “the ELSE path executes”
EndIf (Points : 4)
12. (TCO 3 & 4) What value gets displayed for the variable X?
Set
Set
Set
If (B > 15) OR () OR (C <= 15)="">
Set
Else
Set
EndIf
Display X (Points : 4)