Question: Delegation and Functional Programming.
(a) Implement a write lines() method for the capOpen class. Your new function will take a list of lines and write them out converted to uppercase, similar to the way the regular writelines() method differs from write(). Note that once you are done, write lines() is no longer "delegated" to the file object.
(b) Add an argument to the write lines() method that determines whether a NEWLINE should be added to every line of the list. This argument should default to a value of 0 for no NEWLINEs.