Function String SearchName(String name, String names], Integer size Delare: Boolean found Integer index String result found == False and index < size False True False contains(names[index], name) True set index = index + 1 False found == True True set result = "Name not found" return result set result = names[index] set found = True
Function String SearchName(String name, String names], Integer size Delare: Boolean found Integer index String result found == False and index < size False True False contains(names[index], name) True set index = index + 1 False found == True True set result = "Name not found" return result set result = names[index] set found = True
Chapter8: Arrays
Section: Chapter Questions
Problem 8RQ
Related questions
Question
Help! How do I turn the flowchart that searches for a name in an array of names into structured and spaced pseudocode?
![Function String SearchName(String name,
String names], Integer size
Delare:
Boolean found
Integer index
String result
found == False and
index < size
False
True
False
contains(names[index],
name)
True
set index = index + 1
False
found == True
True
set result = "Name
not found"
return result
set result =
names[index]
set found = True](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fe9220a27-0675-4410-b8f4-21c5a7e08562%2F6507ad7d-9136-47b4-9094-0e7505dfb536%2Fnc2fp48_processed.png&w=3840&q=75)
Transcribed Image Text:Function String SearchName(String name,
String names], Integer size
Delare:
Boolean found
Integer index
String result
found == False and
index < size
False
True
False
contains(names[index],
name)
True
set index = index + 1
False
found == True
True
set result = "Name
not found"
return result
set result =
names[index]
set found = True
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Recommended textbooks for you

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage

EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage

Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning

C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning