Hello everyone

I am new with algorithm, this is one of my problem which I am trying to sort out. Can anyone help me with some clues for this...

Design an algorithm that will read an input weight for an item to be shipped search an array of shipping weights and retrieve a corresponding freight charge.

Then write a program to implement the algorithm using a 6 element array/s.