CIS 115 Final Exam 3 Sets of Answers CIS 115 Final Exam 3 | Page 5
Set
DOWHILE num<=>
Set + num
ENDO
Display total (Points : 10)
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 7 have a 5% sales tax. The 8–24 codes have a sales tax of 7%. Codes above 24 have a sales
tax of 9%. The code is entered by the user.
Begin
Declare Real salesTax
Declare _____ countyCode
_____ “Enter the county code: “
_____ countyCode
If _____ <= 7="">
Set
Else
If _____ AND _____ then
Set
Else
_____
EndIf
_____
Display “the sales tax is: “ + _____
End (Points : 10)