Problem 1:
The idea in this case was to get the task data into a structure as each task had multiple pieces of data that needed to be processed separately. This is a requirements miss in your program. (-15 pts)
Careful about how you name things. Naming a function as "function()" isn't the best choice in the world. (-5 points)
Problem 2: A little convoluted on your part but does the job.
Problem 1: The idea in this case was to get the task data into a structure as each task had multiple pieces of data that needed to be processed separately. This is a requirements miss in your program. (-15 pts)
Careful about how you name things. Naming a function as "function()" isn't the best choice in the world. (-5 points)
Problem 2: A little convoluted on your part but does the job.