As shown in Figure 4, MVC represents the solution to our problem. The model contains the functional core of the application. It encapsulates the appropriate data and performs application-specific processing. The model also provides functions to access its data used by view components to acquire the data to be displayed. View components present information to the user.
Different views present the model's information in different ways.
Each view is involved in an update procedure activated by the event model. When the update procedure is called, a view retrieves the current data values to be displayed from the model, and puts them on the screen. The controller is function-based. The control module is mapped into a composition of the component set. It is the only link between the model and the view.