A function is worth it when the same group of steps shows up more than once. Which of these programs would benefit from one?
Select all that apply.
Once you get it right, the reasoning behind the answer shows up here.
A game that shows the same 3-line 'Level complete!' banner after every one of its 10 levels
A quiz that checks an answer with the same 4 steps after each of its 20 questions
A program that prints one welcome message, once, when it starts
A script that does five completely different jobs, each exactly one time