Code and Output of the assignment question