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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 8RQ
icon
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
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
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning