guys, can you help me..it's an urgent i just have to answer this question for my take home final exam...

our professor just taught a little of it and i've got a hard time studying it but still it's not worth it this is the last chance i have... if you can just help me to answer this together with how or why the program goes like that, for me to study it...

1.) write a program containing a function that will return the smallest of 3 floating nos.

2.)write a program that will search for the smallest value in an array of integers of length 10.

i will really appreciate your help...

thak you very much....**:) **