CIS 115 All Assignments CIS 115 All Assignments | Page 16
DOWHILE control1 = “n”
If (color1 <> “yellow”) _____ (color1 <> “red”) _____ (color1 <> “blue”) then
Prompt “first primary color is invalid”
Input _____
Else
Set control1 = “y”
ENDO
Set control2 = “n”
DOWHILE control2 = “n”
If (color2 <> “yellow”) _____ (color2 <> “red”) _____ (color2 <> “blue”) then
Prompt “second primary color is invalid”
Input color2
Else
Set control2 = “y”
ENDO
If (color1 = “red”) AND (_____) then
Display “secondary color is: purple”
EndIf
If (color1 = “yellow”) AND (_____) then
Display “secondary color is: green”
EndIf
End (Points : 10)
7. (TCO 1, 2, 3, & 4) Describe the difference between a flowchart and pseudocode and explain
whether one is more important to develop than the other. (Points : 10)