CIS 115 Final Exam 1 CIS 115 Final Exam 1 | Page 6
If ______ AND ______ then
______________
Else
Set
EndIf
____________
Display “the sales tax is: “ + _______________
End (Points : 10)
5. (TCO 5 & 10) Complete the pseudocode by rewriting the algorithm. The design is to display a
60 second countdown.
Begin
Declare _______ count
Set
REPEAT
Display “countdown: “ + _______
Set - 1
UNTIL ___________
Display “LIFT OFF!”
End (Points : 10)
6. (TCO 4, 5 & 10) Complete the pseudocode by rewriting the algorithm. The colors red, blue,
and yellow are known as primary colors because they cannot be made by mixing other colors.
When you mix two primary colors, you get a secondary color. Mixing yellow and blue gets you
green. Mixing red and blue gets you purple. The algorithm allows the user to enter two primary
colors and then displays the resulting secondary color. The colors entered by the user will be
validated to ensure they entered a primary color.
Begin