Search for question
Question

Homework 4 Released: March 6th Due: Tuesday, March 12th at 5pm on Gradescope All work must be individual 1 Introduction There will be no starter code for this assignment. You should use the JavaFX code from HW3 as a starting point. You will be researching one of four common design patterns listed below and must implement them in a simple JavaFX app. Your final submission will be a pdf to gradescope. 2 Design Patterns You will chose one of the following design patterns: Template Method, Proxy, Adapter or Abstract Factory. You will write a JavaFX program that highlights the functionality of the design pattern you chose. This does not need to be a lot of code and the GUI does not need to be extensive. You can not simply copy and paste an example from the web. You will submit a paper describing how the design pattern works in your program and what the benefits and/or drawbacks of using it are. Format this page as a PDF. 3 Requirements Your paper should contain the following. Paragraphs do not need to be more than a couple sentences • A one paragraph summary of the design pattern • A paragraph describing the benefits of the pattern. Give an example where the pattern would be helpful • A paragraph describing the drawbacks of the pattern. Give an example where the pattern could be harmful. • A screenshot of your code implementation. This code should be well commented. At least one comment every couple lines • A screenshot of your GUI and a short description of its expected behavior 1 Give five ways that you might test this design pattern. Use the (empty/single/many) approach if appropriate. Include a screenshot of one of these tests in JUnit. 4 Submitting your work This submission will be submitted as a PDF to gradescope. There is no blackboard submis- sion required. 2