CIS 115 Final Exam 2 CIS 115 Final Exam 2 | Page 5
2. (TCO 10) A small business in your neighborhood would like an application developed that
determines the average dollar amount spent for every three purchases. The user will enter
three different purchase amounts. You need to display the average to your client. Complete the
pseudocode to design your logic. (Points : 10)
3. (TCO 9 & 10) There is a logic error in the following pseudocode. The loop needs to execute
four times. What statement(s) would you need to add or change to correct the logic? Be sure to
explain why you are adding or changing the statements.
Set
REPEAT
Set + 1
UNTIL total <>
EndWhile
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 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