Extra credit: Nested templates
This assignment is due on Friday, October 18 at 11:59pm.
1 Practice with templates
Check your answer using “Show answer” above. Did you get it right? If not, click the button again to get another set, and keeping doing it until you get it right without peeking at the answer.
You don’t need to submit anything for this check. But the longer you put off mastering the skill of writing templates, the harder the rest of this entire course will be for you.
2 Practice with your instructors
Go to Luddy Hall room 0121 during an in-person tutoring session and tell the instructor that you want to take the template quiz.
You can only try once per tutoring session. You can also try once during each lab session, but only if you and your partner are done with the entire lab, including optional exercises, and the instructor is not busy helping other students.
The instructor will give you a piece of paper with some random data definitions on it, just as produced by the button above. Grab a blank piece of paper and write the templates for functions that process these data.
To receive credit, your answer must be exactly correct, but it doesn’t matterhow you name your function inputs,
how you order your function definitions, your cond cases, and your structure fields,
and how you capitalize or hyphenate.