I need help :c with this I'm struggling on assignment.

I need help :c with this I m struggling on assignment. class=