# Ch06_Logic8e_Solutions - Programming Logic and Design, 8e...

• Homework Help
• 77
• 97% (251) 244 out of 251 people found this document helpful

This preview shows page 1 - 4 out of 77 pages.

Programming Logic and Design, 8eSolutions 6-Programming Logic and Design, 8th EditionChapter 6REVIEW QUESTIONS1.A subscript is a(n) _____.a.element in an arrayb.alternate name for an arrayc.number that represents the highest value stored within an arrayd.number that indicates the position of an array element1
2.Each element in an array must have the same _____ as the others.
3.Suppose you have declared a numeric array namedvaluesthat has 13 elements. Which of thefollowing must be true?
4.The subscripts of any array are always _____.
##### We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
Chapter 3 / Exercise 2
Fundamentals of Logic Design
Kinney/Roth
Expert Verified
Programming Logic and Design, 8eSolutions 6-5.Suppose that you have declared a numeric array namednumbers, and two of its elements arenumbers[1]andnumbers[4]. You know that _____.a.the two elements hold the same valueb.the array holds exactly four elementsc.there are exactly two elements between those two elementsd.the two elements are at the same memory location2
6.Suppose that you have declared a numeric array namednumbers, and two of its elements arenumbers[1]andnumbers[4]. You know that _____.
7.Suppose that you want to write a program that inputs customer data and displays a summary of thenumber of customers who owe more than \$1000 each, in each of 12 sales regions. Customer datavariables includename,zipCode,balanceDue, andregionNumber. At some point duringrecord processing, you would add 1 to an array element whose subscript would be represented by_____.
8.A program contains a seven-element array that holds the names of the days of the week. At the start ofthe program, you display the day names using a subscript nameddayNum. You display the same arrayvalues again at the end of the program, where you _____ as a subscript to the array.
Programming Logic and Design, 8eSolutions 6-b.can usedayNum,but can also use another variablec.must not usedayNumd.must use a numeric constant instead of a variable

Course Hero member to access this document

Course Hero member to access this document

End of preview. Want to read all 77 pages?

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
NUM, sentinel value
##### We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
The document you are viewing contains questions related to this textbook.
Chapter 3 / Exercise 2
Fundamentals of Logic Design
Kinney/Roth
Expert Verified