0% found this document useful (0 votes)
42 views5 pages

CS603 Assignment 2 Solution Fall 2024

The document outlines the requirements for CS603 Assignment 2, focusing on designing a banking web application using the MVC pattern. It includes specific tasks such as drawing a sequence diagram, discussing design principles like loose coupling, and identifying components responsible for business logic. The document emphasizes the importance of not copying answers directly and encourages modifications before submission.

Uploaded by

nighattahira678
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views5 pages

CS603 Assignment 2 Solution Fall 2024

The document outlines the requirements for CS603 Assignment 2, focusing on designing a banking web application using the MVC pattern. It includes specific tasks such as drawing a sequence diagram, discussing design principles like loose coupling, and identifying components responsible for business logic. The document emphasizes the importance of not copying answers directly and encourages modifications before submission.

Uploaded by

nighattahira678
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

MORE SOLUTIONS, CURRENT AND PAST PAPERS FREELY VISIT

VUAnswer.pk

CS603 ASSIGNMENT 2 SOLUTION FALL 2024

Due Date: 4-Jan-2025


Total Marks: 20

DO NOT COPY PASTE THE SAME

Assignment Submission Instruction:


Assignment should be a word file (.doc or .docx)

Consider the following scenario:

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.

FOR PAID ASSIGNMENTS CORRECT SOLUTION WHATSAPP

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.

e) In this context, if the intent is to reduce dependencies between components to enhance


modularity but slightly decreases the efficiency of individual operations, does this
prioritize coupling or cohesion? Justify your answer in one line.

SOLUTION

A.

FOR PAID ASSIGNMENTS CORRECT SOLUTION WHATSAPP

03162965677
MORE SOLUTIONS, CURRENT AND PAST PAPERS FREELY VISIT

VUAnswer.pk

b) Which principle can reduce interdependencies between components by


ensuring their independent functionality at the cost of some internal coherence?

Answer: The principle of loose coupling.

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.

FOR PAID ASSIGNMENTS CORRECT SOLUTION WHATSAPP

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?

Answer: The Controller and Model components.

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.

e) In this context, if the intent is to reduce dependencies between components to


enhance modularity but slightly decreases the efficiency of individual operations,
does this prioritize coupling or cohesion? Justify your answer in one line.

Answer: This prioritizes cohesion.

Explanation: Reducing dependencies between components enhances modularity and ensures


that each component is focused on its specific responsibility, which improves cohesion.
Cohesion refers to how closely related and focused the responsibilities of a single component

FOR PAID ASSIGNMENTS CORRECT SOLUTION WHATSAPP

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.

FOR FREE ASSIGNMENTS SOLUTIONS VISIT

VUAnswer.pk

FOR PAID ASSIGNMENTS CORRECT SOLUTION WHATSAPP

03162965677

You might also like