CIS 115 (Devry) help Making Decisions/uophelp.com CIS 115 (Devry) help Making Decisions/uophelp.com | Page 13
4. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm.
The design is determining the correct sales tax depending on the county
identifying code. Counties with a number less than 10 have a 6% sales
tax. The 11–25 codes have a sales tax of 7%. Codes above 25 have a
sales tax of 8%. The code is entered by the user.
Begin
Declare Real salesTax
Declare _____ countyCode
_____ “Enter the county code: “
_____ countyCode
If _____ <= 10="">
Set
Else
If _____ AND _____ then
Set
Else
_____
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 _____
EndDo
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