please i need help for this program
i need the answer of it because tommorow i have an exam and i have to understand this problem before making the exam

it's really an important one

please...