In: Computer Science
: Software engineering question :
Describe an example taken from an online e-x-a-m application that demonstrates:
a) composite one-to-many association
b) ModelView-Controller design pattern
Ok, I will answer this.
The first thing that I need to tell is that there are various different approaches to the development of the software.
a) one-to-many association
We can easily figure out the relations or associations between the instance using the UML diagram.
The one to many associations, a row from one table can have multiple matching rows in another table. This can be easily achieved using the mapping of Primary key: Foreign key relationship.
In the online e_x_a_m application, there can be multiple such relationships, One among them can be
There can be only one e_x_a_m invigilator for multiple students in a class. But for each student in that class, only one invigilator will be there
b) Model view controller :
Another design pattern for software development is the MVC or Model View controller.
In this, the whole content is separated into three main components :
The model represents the data that will be transferred to the software. Usually, the model will contain the databases. In the online e_x_a_m application, the whole database can be considered as the model.
The view component is used for all the UI of the application.
The controller component acts as an interface among the model(database) and the view(UI)