Programming lab answer for FCSIT student.