Using C. This question requires you to perform the following task: Input an array of five names and an array of five corresponding grades. Each name is in the format . An example of a name is Claire Arnold Jameson. Enter a search name which consists of a last name. If the search name is in the names array, then output the corresponding grade. This task requires the use a sequential search. For those who need a review of this search, here is an algorithm for searching an array: flag = 0; (assume not found) i = 0; while (flag == 0 && i < size of array) { If (search element = array [i]) // process found // flag = 1 else i = i + 1 } If (i == 0) // process not found Run your program with the following data: Names Array Grades Array Claire Arnold Jameson 76 Joe Carlson Barnes 83 Cliff Robert Baker 57 Carmel Joanne Xavier 93 Natasha Elaine Keaton 74 Search names: Baker Albert
Using C. This question requires you to perform the following task:
Input an array of five names and an array of five corresponding grades. Each name is in the
format <first name> <middle name> <last name>. An example of a name is Claire Arnold
Jameson.
Enter a search name which consists of a last name. If the search name is in the names array,
then output the corresponding grade.
This task requires the use a sequential search. For those who
need a review of this search, here is an
flag = 0; (assume not found)
i = 0;
while (flag == 0 && i < size of array)
{
If (search element = array [i])
// process found
// flag = 1
else
i = i + 1
}
If (i == 0)
// process not found
Run your program with the following data:
Names Array Grades Array
Claire Arnold Jameson 76
Joe Carlson Barnes 83
Cliff Robert Baker 57
Carmel Joanne Xavier 93
Natasha Elaine Keaton 74
Search names:
Baker
Albert
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)