SCRIPTS TO SOLVE FINAL EXAM QUESTIONS