Question: Write a Bash script to do a binary search. Read student names and grades from a file into an array. Prompt the user for a

Write a Bash script to do a binary search. Read student names and grades from a file into an array. Prompt the user for a student name. Find the name in the array and display the grade. If the student does not exist, print a message stating that.

The data in the file is below:

Ann:A

Bob:C

Cindy:B

Dean:F

Emily:A

Frank:C

Ginger:D

Hal:B

Ivy:A

Justin:F

Karen:D

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!