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
Get step-by-step solutions from verified subject matter experts
