Question: Design a function that takes a list of courses and returns a list of the course codes of the courses. ( The course code includes
Design a function that takes a list of courses and returns a list of the course codes of the courses. The course code includes the department and number, eg CPSC Be sure to follow the HtDF recipe and remember to follow the reference rule.# your solution goes hereProblem Design data definitions to represent a list of shipping containers. Each container has a length, width, and height and is either empty or full.# your solution goes hereProblem Did you use a Boolean or an Enumeration to represent whether the shipping container was empty or full? How would your design change if you switched choices? Which choice do you think is better, and why?bool. Because their are only two kind of return that need to be considered empty or not. So that true or false statement will best fit in this condition. I will switching my default accumulator as "not umpty" if I use enumeration.Problem Design a function that takes a list of shipping containers and returns a list containing the volume of each of the empty containers. Be sure to follow the HtDF recipe, and design any helper functions that might be required by the reference rule. The volume of each container can be calculated as lengthwidthheight# your solution goes hereProblem We could design a single function that takes a Container and returns the volume of an empty Container or None if the Container is full. Is such a function useful here? Why or why not?no because if a container is not full dosen't means it is empty.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
