This post was flagged by the community and is temporarily hidden.
Can you show your attempts to do this.
I am trying to replicate the way we did this in class but I am not getting the proper results.
I am doing the following:
What code did you come up with so far?
Please have a look to our homework policy, homework inspired questions are welcome but they should not include verbatim instructions from your course.