× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
g
3
3
2
J
2
p
2
m
2
h
2
s
2
r
2
d
2
l
2
a
2
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 118 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
this is exactly what I needed
wrote...

Yesterday
This helped my grade so much Perfect
wrote...

2 hours ago
Smart ... Thanks!
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1026 People Browsing
 162 Signed Up Today
Related Images
  
 940
  
 355
  
 304
Your Opinion
Which industry do you think artificial intelligence (AI) will impact the most?
Votes: 352