C Programming final assessment