Design the pseudocode and flowchart that will use a Binary Search to locate a birth year entered…

Design the pseudocode and flowchart that will use a Binary Search to locate a birth year entered by the user, and displays an error if the year cannot be located.

Once located, display the following information:

1) The birthYear as well as the firstName and lastName in the parallel arrays.

2) The total count of times that the binary search executed before finding a match.

The data to be used for this lab is as follows:

Element Number

Array Name

0

1

2

3

4

5

6

lastNames

Harris

Jefferson

Adams

Watkins

Smith

Banks

Garcia

firstNames

Jamie

Daniel

Kim

Stacey

Pauline

Paul

Thomas

birthYear

1942

1966

1995

1938

1999

1992

1994

HINTS:

1) Binary Searches must be done against data that is in ascending order! So if the data is not in ascending order, you must put that data in ascending order BEFORE attempting to do a Binary Search.

2) Parallel Arrays must be kept in the same order! So as you sort the data into ascending order, you must also reposition the parallel array data, to keep all data “PARALLEL”

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.