Question
I need this code in FLOWGORITHM. Please provide the answer in Florgorithm screenshots...thanks 1 // Declare a constant for the array size. 2 Constant Integer
I need this code in FLOWGORITHM. Please provide the answer in Florgorithm screenshots...thanks
1 // Declare a constant for the array size.
2 Constant Integer SIZE = 6
3
4 // Declare a String array initialized with values.
5 Declare String names[SIZE] = "Ava Fischer", "Chris Rich",
6 "Gordon Pike", "Matt Hoyle",
7 "Rose Harrison", "Giovanni Ricci"
8
9 // Declare a variable to hold the search value.
10 Declare String searchValue
11
12 // Declare a Boolean variable to act as a flag.
13 Declare Boolean found
14
15 // Declare a counter variable for
16 Declare Integer index
17
18 // The flag must initially be set
19 Set found = False
20
21 // Set the counter variable to 0.
22 Set index = 0
23
24 // Get the string to search for.
25 Display "Enter a name to search for in the array."
26 Input searchValue
27
28 // Step through the array searching for
29 // the specified name.
30 While found == False AND index <= SIZE - 1
31 If names[index] == searchValue Then
32 Set found = True
33 Else
34 Set index = index + 1
35 End If
36 End While
37
Please provide answer in the program FLOWGORITHM with screenshots...thanks
the array. to Fals
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started