CIS 115 Final Exam 1
For more course tutorials visit www.uoptutorial.com CIS 115 Entire Course: Devry University: All iLabs and Exercises
For more course tutorials visit
www.uoptutorial.com
CIS 115 Entire Course: Devry University: All iLabs and Exercises
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Else<br />
If ______ AND ______ then<br />
______________<br />
Else<br />
Set<br />
EndIf<br />
____________<br />
Display “the sales tax is: “ + _______________<br />
End (Points : 10)<br />
5. (TCO 5 & 10) Complete the pseudocode by rewriting the algorithm. The design is to display a<br />
60 second countdown.<br />
Begin<br />
Declare _______ count<br />
Set<br />
REPEAT<br />
Display “countdown: “ + _______<br />
Set - 1<br />
UNTIL ___________<br />
Display “LIFT OFF!”<br />
End (Points : 10)<br />
6. (TCO 4, 5 & 10) Complete the pseudocode by rewriting the algorithm. The colors red, blue,<br />
and yellow are known as primary colors because they cannot be made by mixing other colors.<br />
When you mix two primary colors, you get a secondary color. Mixing yellow and blue gets you<br />
green. Mixing red and blue gets you purple. The algorithm allows the user to enter two primary<br />
colors and then displays the resulting secondary color. The colors entered by the user will be<br />
validated to ensure they entered a primary color.<br />
Begin<br />
Declare String color1<br />
Declare String color2<br />
Declare String control1<br />
Declare String control2<br />
______ “Enter first primary color: “<br />
Input _______<br />
Prompt “Enter the second primary color: “<br />
Input _________<br />
Set control1 = “n”<br />
DOWHILE control1 = “n”<br />
If (color1 “yellow”) ______ (color1 “red”) _______ (color1 “blue”) then<br />
Prompt “first primary color is invalid”<br />
Input _________<br />
Else<br />
Set control1 = “y”<br />
ENDO<br />
Set control2 = “n”<br />
DOWHILE control2 = “n”<br />
If (color2 “yellow”) ______ (color2 “red”) _______ (color2 “blue”) then