First task is regarding function, rest tasks are related to arrays. You might not complete them in the lab but make sure you practice the rest at home.
Implement all the problems by using the concept of function.
Attached solution of first four tasks of Lab 6, attempting the last one is up to you.
Best of Luck