Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

4. What will the team agreement contain?

Answered: 1 week ago

Question

What were the issues and solutions proposed by each team?

Answered: 1 week ago