• Home
  • Blog
  • UHV Function that Uses the Linear Search Algorithm Program

UHV Function that Uses the Linear Search Algorithm Program

0 comments

Write a program that uses an arrays of at least 20 string .  It should call a function that uses the linear search algorithm to locate one of the name. Read list of name from an input file call “StudentName.txt”

The function should keep a count of the numbers of comparisons it makes until it finds the value.  The program then should call a function that uses the binary search algorithm to locate the same value.  It should also keep count of the numbers of comparisons it makes.  Display these values to a file call “out.txt”

Grading for Each assignments is Based on following requirements clearly stated as follow: 
a.  Top of each Program you have your Name :  Indicated that this is your work.           (1 point )
b.  Next line is indicating the date you are submitting your program.                               (1 point )
c.  Next line you will write a brief explanation for what this program intend to do.            (1 point )
d.  Use of sufficient comments to clarify use of syntax.                                                    (1 point)
e.  Use of meaningful variable (identifier) in your program                                                (1 point)
f.  Separate input, process, and output instructions by a comment (In-Process-Out)       (1 point)
g. Working program without any error                                                                               (3 points)
h. Turn in on time  (1 point deducted for each day late submission)                                 (1 point)

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}