Use have to / has to for external obligations (rules, laws, requirements). Use don't / doesn't have to when something is not necessary — there is a choice. Exercise 3 also covers must and mustn't.
Choose the correct form: have to / has to / don't have to / doesn't have to.