× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
k
1
1
1
1
1
New Topic  
ovrpaid ovrpaid
wrote...
Posts: 285
Rep: 0 0
5 years ago
The following pseudocode searches for an item. Which variable represents a flag to indicate whether or not the item being searched for has been found? There are N elements in the array named A.
   Input SearchItem         
   Set X = 0
   Set Y = 0
   While (Y == 0) AND (X < N – 1)
      If A[X] == SearchItem Then
         Set Y = 1
      End If
      Set X = X + 1
   End While
a.     X   b.     Y   c.    A[X]   d.     N
Textbook 
Prelude to Programming

Prelude to Programming


Edition: 6th
Authors:
Read 120 times
1 Reply
Replies
Answer verified by a subject expert
penia_smilespenia_smiles
wrote...
Posts: 241
5 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

ovrpaid Author
wrote...

5 years ago
Thanks
wrote...

Yesterday
Correct Slight Smile TY
wrote...

2 hours ago
Thanks
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  910 People Browsing
Related Images
  
 436
  
 872
  
 899
Your Opinion
Which is the best fuel for late night cramming?
Votes: 145

Previous poll results: Do you believe in global warming?