Please someone correct the syntax errors

Re-posted as follow-up question in http://community.wolfram.com/groups/-/m/t/283255