CIS 115 (Devry) help Making Decisions/uophelp.com CIS 115 (Devry) help Making Decisions/uophelp.com | Page 19
14. (TCO 9) What type of error occurs when an array subscript’s value
goes beyond the total number of elements in the array? (Points : 4)
15. (TCO 2) Which of the following is not an advantage of modular
design? (Points : 4)
1. (TCO 10) A retail store is having a customer appreciation sale.
Depending on the total dollars purchased, the customer could receive a
discount on his or her total purchases. You are to develop pseudocode
that will obtain the total dollars purchased from the user, determine the
discount percentage, and display the total amount due. When the
purchases are more than $100, the discount is 10%. When the purchases
are $100 or less, the discount is 5%. (Points : 10)
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.
What statement(s) would you need to add to correct the logic? Be sure to
explain why you are adding the statements.
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="">