Question: Think about the observer pattern can help to decouple UI layer from model layer, design a tax calculation with max 4 classes that use packages

Think about the observer pattern can help to decouple UI layer from model layer, design a tax calculation with max 4 classes that use packages for view and model layers, make a class diagram that shows the view and the model and what classes are in this packages, a sequence diagram that shows the behavior of the system and a simple Java implementation. The next model class must be part of the system.

TaxCalculation
getTax()
addIncome(income)
setTaxPercent(taxPrecent)

I need help to start, I'm lost and I can make it work with the observer pattern

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!