You might question that answer. You might say that the major tasks are:
Both answers are correct. The second answer shows details of the first answer:
Dividing a task into smaller tasks, and then dividing those tasks into yet smaller tasks is the essential programming skill. Eventually, even the largest task can be divided into pieces so small that individual statements of a program can perform them.
Consider the following "big task:"
The user enters a number of gallons. The program calculates the number quarts in that many gallons.
What are the tasks of this problem?