CS603 Assignment 2 Solution Fall 2024
CS603 Assignment 2 Solution Fall 2024
VUAnswer.pk
You are tasked with designing a web application for a banking system using the MVC (Model-
View-Controller) architectural pattern. The banking system provides a platform for customers and
administrators to perform their respective tasks. Customers can securely log in to their accounts
using their credentials to access account details, view transaction history, and initiate fund
transfers. For a fund transfer, customers must enter the recipient’s account details, the transfer
amount, and optionally a note for the transaction. The system validates the provided information
and processes the transfer through a secure backend system. Once processed, the system displays
an appropriate success or error message on the user interface. Administrators use the system for
monitoring transactions and managing customer accounts, ensuring compliance and data integrity.
To meet the requirements of scalability and maintainability the application is designed to strictly
follow the MVC pattern.
Based on the above scenario you have to answer the following questions.
03162965677
MORE SOLUTIONS, CURRENT AND PAST PAPERS FREELY VISIT
VUAnswer.pk
a) Draw a sequence diagram to depict the flow of interactions when a customer initiates a
fund transfer.
b) In the given context, which principle can reduce interdependencies between components
by ensuring their independent functionality at the cost of some internal coherence?
c) In the given context, apart from the task of displaying the user input, which component
is/are concerned with executing business logic or validating bank transaction requests?
d) Based on this scenario, let us say that the Controller component attempts to update the user
interface after processing a fund transfer request, what is your view about this? justify your
response in one line.
SOLUTION
A.
03162965677
MORE SOLUTIONS, CURRENT AND PAST PAPERS FREELY VISIT
VUAnswer.pk
Explanation: Loose coupling refers to the design principle where components are independent
and interact with each other through well-defined interfaces. This reduces interdependencies
between components and allows each component to function independently. However, this may
slightly reduce internal coherence, as components may need more elaborate mechanisms for
communication, such as message passing or event handling.
03162965677
MORE SOLUTIONS, CURRENT AND PAST PAPERS FREELY VISIT
VUAnswer.pk
c) Apart from the task of displaying the user input, which component is/are
concerned with executing business logic or validating bank transaction requests?
Explanation: The Controller handles the business logic by processing the user’s request and
communicating with the Model to validate and process the transaction. The Model contains the
data and rules of the application, including validation for the bank transaction, ensuring that the
operation is valid before it proceeds to the backend system.
d) Based on this scenario, let us say that the Controller component attempts to
update the user interface after processing a fund transfer request, what is your
view about this? Justify your response in one line.
Answer: The Controller should not directly update the user interface. It should delegate
this task to the View component.
Explanation: In the MVC (Model-View-Controller) pattern, the Controller handles the logic and
communication between the Model and the View. The View should be responsible for updating
the user interface, keeping the Controller free from UI concerns to maintain separation of
concerns.
03162965677
MORE SOLUTIONS, CURRENT AND PAST PAPERS FREELY VISIT
VUAnswer.pk
are. In this scenario, the components become more self-contained, increasing their cohesion,
though at the cost of some efficiency in communication between them.
REGARD - SARIM
WHATSAPP +923162965677
PLEASE NOTE:
Don't copy-paste the same answer.
Make sure you can make some changes to your solution file before
submitting copy paste solution will be marked zero.
If you found any mistake then correct yourself and inform me.
Before submitting an assignment must check your assignment requirement
file.
If you need some help or question about file and solutions feel free to ask.
VUAnswer.pk
03162965677