detailed answer needed for this..please see attachment

answer for Question #1 should be a script approach preferably .no diagram