Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions

Question

How often do you meet with your graduate students?

Answered: 1 week ago

Question

What is the fifth term of the sequence defined by h_(n)=-7(5)^(n-1)

Answered: 1 week ago

Question

How do you add two harmonic motions having different frequencies?

Answered: 1 week ago