0% found this document useful (0 votes)
13 views17 pages

Code

Uploaded by

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

Code

Uploaded by

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

Question 3)

@startuml
left to right direction
actor "Charity Organization" as CO
actor "Merchant/Business Owner" as MBO
actor "Banking System" as BS
actor Customer as C
actor "DGR Platform System" as DPS
actor "Email Notification Service" as ENS
actor Admin as A

rectangle "Doing Good Rewards (DGR) System" {


usecase "Upload Invoice" as UC1
usecase "Validate Charity Status" as UC2
usecase "Manage Merchant Contracts" as UC3
usecase "Configure System Settings" as UC4
usecase "Generate Financial Reports" as UC5
usecase "Set Offer Details" as UC6
usecase "Log In" as UC7
usecase "Register Account" as UC8
usecase "Verify Payment" as UC9
usecase "Research Open Banking" as UC10
usecase "Design Portal Interface" as UC11
usecase "Split Donation" as UC12
usecase "Update Offers and Contracts" as UC13
usecase "Agree to Contract" as UC14
usecase "Choose Charity" as UC15
usecase "Monitor Gift Payments" as UC16
usecase "Provide Donation Receipts" as UC17
usecase "Receive Gift/Link" as UC18
usecase "Handle Queries" as UC19
usecase "Allocate Rewards" as UC20
usecase "Edit Profile" as UC21
usecase "Send Payment Confirmation" as UC22
usecase "Set Up Payment" as UC23
usecase "View Transaction History" as UC24
usecase "Receive Payment Alert" as UC25
}

CO -- UC1
CO -- UC2
MBO -- UC6
C -- UC7
C -- UC8
BS -- UC9
DPS -- UC10
DPS -- UC11
DPS -- UC12
DPS -- UC13
MBO -- UC14
C -- UC15
CO -- UC17
C -- UC18
C -- UC21
ENS -- UC22
C -- UC23
C -- UC24
BS -- UC25

' Admin connections on the right side


UC3 -- A
UC4 -- A
UC5 -- A
UC16 -- A
UC19 -- A
UC20 -- A

' Include relationships


UC1 ..> UC16 : <<include>>
UC2 ..> UC16 : <<include>>
UC3 ..> UC16 : <<include>>
UC6 ..> UC18 : <<include>>
UC8 ..> UC21 : <<include>>
UC9 ..> UC25 : <<include>>
UC14 ..> UC13 : <<include>>
UC15 ..> UC23 : <<include>>
UC23 ..> UC22 : <<include>>
UC23 ..> UC25 : <<include>>

' Extend relationships


UC7 <.. UC1 : <<extend>>
UC7 <.. UC2 : <<extend>>
UC7 <.. UC3 : <<extend>>
UC7 <.. UC4 : <<extend>>
UC7 <.. UC5 : <<extend>>
UC24 <.. UC25 : <<extend>>
UC19 <.. UC16 : <<extend>>
UC20 <.. UC16 : <<extend>>
UC17 <.. UC16 : <<extend>>
UC13 <.. UC6 : <<extend>>

@enduml

Question 2
@startuml
!define primary #palegreen
!define secondary #yellow
!define supporting #lightblue
!define abstract #orange

actor "Business Owner/Merchant\n(Primary Actor)" as Merchant primary


actor "Consumer\n(Primary Actor)" as Consumer primary
actor "System Administrator at DGR\n(Secondary Actor)" as Admin secondary
actor "Charity Representative\n(Secondary Actor)" as CharityRep secondary

actor "Financial Banking System\n(Secondary Actor)" as BankingSystem secondary


actor "Automated Email System\n(Supporting Actor)" as EmailSystem supporting
entity "Digital Web Portal\n(Abstract Actor)" as WebPortal abstract
entity "Open Banking API Service\n(Abstract Actor)" as OpenBankingAPI abstract

Merchant --> WebPortal : inputs payment details\nand monitors transactions


Consumer --> Merchant : enters agreements and\nmakes payments
Admin --> WebPortal : oversees functionality\nand user support
CharityRep --> EmailSystem : receives donation reports

BankingSystem --> WebPortal : provides bank feeds


EmailSystem --> Merchant : sends transaction\nconfirmation emails
EmailSystem --> Consumer : sends discount\nand donation alerts
OpenBankingAPI --> WebPortal : allows access\nto financial data

@enduml
Question 1)
Part One
@startuml
skinparam rectangleBorderThickness 2
skinparam rectangleBorderColor #000000
skinparam rectangleBackgroundColor #FFA500

title Agile Software Development Life Cycle

rectangle "Requirements" as req


rectangle "Architecture and Design" as arch
rectangle "Development" as dev
rectangle "Test and Feedback" as test

req -right-> arch : Define\nArchitecture and Design


arch -right-> dev : Develop\nFeatures
dev -down-> test : Test and\nCollect Feedback
test -up-> req : Refine\nRequirements

@enduml

Part Two
@startuml
skinparam backgroundColor transparent
skinparam defaultFontName Arial

title Phased Project Life Cycle

(*) --> "Initiation"


--> "Planning"
--> "Execution"
--> "Monitoring and Control"
--> "Closure"
--> (*)
@enduml

Question 4)
First
@startuml
start

:Choose "Register";
:Display Registration Form;
:Submit Form with Details;
:Check if User Exists;

if (User Does Not Exist) then (yes)


:Confirm User Creation;
:Display Success Message;
else (no)
:Display Error "User Already Exists";
endif

stop
@enduml

Second
@startuml
start

:Enter Username and Password;


:Validate Credentials;
if (Credentials Valid) then (yes)
:Display Dashboard;
else (no)
:Display Error "Invalid Credentials";
endif

stop
@enduml

Third
@startuml
start

:Select "Edit Profile";


:Display Profile Details;
:Update Details and Submit;
:Validate and Update Information;
if (Update Successful) then (yes)
:Display Success Message;
else (no)
:Display Error Message;
endif

stop
@enduml

Fourth
@startuml
start

:Select "View Contract";


:Display Contract Details;
if (Agree to Terms?) then (yes)
:Click "Agree to Terms";
:Record Agreement;
:Confirmation;
:Display "Agreement Successful" Message;
else (no)
:Display "Customer declines, no contract formed";
endif

stop
@enduml

Fifth
@startuml
start

:Navigate to Payment Setup;


:Display Payment Options;
:Select Payment Method and Schedule;
:Save Payment Details;
if (Payment Details Valid) then (yes)
:Confirm Payment Setup;
:Display "Payment Setup Successful" Message;
else (no)
:Display "Error in Payment Setup";
endif

stop
@enduml
Sixth
@startuml
start

:Check for Completed Payment;


if (Payment Completed) then (yes)
:Confirm Payment Completed;
:Send Payment Alert Email/Notification;
:Receives and Views Alert;
else (no)
:Notify Customer of Pending Payment;
:Recheck Payment After Delay;
endif

stop
@enduml

Seventh
@startuml
start

:Access Charity Selection;


:Display List of Charities;
if (Select a Charity?) then (yes)
:Select a Charity;
:Update Customer's Charity Preference;
:Confirm Update;
:Display "Charity Selection Successful" Message;
else (no)
:Use Default Charity;
:Confirm Default Selection;
:Display "Default Charity Used" Message;
endif

stop
@enduml

Eight
@startuml
start

:Request Transaction History;


:Retrieve User's Transactions;
if (Transactions Found?) then (yes)
:Return Transactions;
:Display Transaction History;
else (no)
:Display "No Transactions Found" Message;
endif

stop
@enduml

Nine
@startuml
start

:Navigate to Upload Invoice;


:Display Upload Form;
:Enter Invoice Details and Submit;
:Validate and Save Invoice;
if (Invoice Valid?) then (yes)
:Confirm Invoice Saved;
:Display "Invoice Uploaded Successfully" Message;
else (no)
:Display "Error in Invoice Details";
endif

stop
@enduml

Ten
@startuml
start

:Choose to Create/Update Offer;


:Display Offer Form;
:Submit Offer Details;
:Validate and Save Offer;
if (Offer Valid?) then (yes)
:Confirm Offer Saved;
:Display "Offer Successfully Saved" Message;
else (no)
:Display "Error in Offer Details";
endif

stop
@enduml

Eleven
@startuml
start

:Retrieve EFT Payments;


:Provide EFT Payment Data;
:Match Payments to Invoices;
if (Payment Matches Invoice?) then (yes)
:Confirm Match;
:Trigger Payment Confirmation;
else (no)
:Trigger Payment Discrepancy Alert;
endif

stop
@enduml

Twelve
@startuml
start

:Request Payment Verification;


:Provide Verification Details;
:Log Payment Status;
if (Payment Verified?) then (yes)
:Update Status to Verified;
:Acknowledge Verification;
else (no)
:Mark as Verification Failed;
:Notify Failure;
endif

stop
@enduml

Thirteen
@startuml
start
:Identify Payment Transaction;
:Provide Transaction Details;
:Calculate Reward Based on Transaction;
if (Discrepancies Found?) then (yes)
:Trigger Alert for Review;
else (no)
:Allocate Rewards to User Account;
:Update Account with Rewards;
endif

stop
@enduml

Fourteen
@startuml
start

:Retrieve Reward Details;


:Provide Reward Amount;
:Calculate Donation Portion;
if (Charity Details Available?) then (yes)
:Allocate Donation to Selected Charity;
:Confirm Donation Allocation;
else (no)
:Allocate to Pre-Selected Charity;
:Confirm Default Allocation;
endif

stop
@enduml
Fifteen
@startuml
start

:Retrieve Recent Payment Details;


:Provide Payment Information;
:Send Payment Confirmation Email/Notification;
if (Email Sent Successfully?) then (yes)
:Receives Confirmation;
else (no)
:Trigger Retry Mechanism;
endif

stop
@enduml

Sixteen
@startuml
start

:Request Financial Report;


:Gather Financial Data;
:Provide Data for Report;
if (Data Provided Successfully?) then (yes)
:Generate and Display Financial Report;
else (no)
:Display "System Error, Try Again Later";
endif

stop
@enduml
Seventeen
@startuml
start

:Access Settings;
:Display Current Settings;
:Update Settings;
if (Authorized to Update?) then (yes)
:Validate and Save New Settings;
:Confirm Changes;
:Display Success Message;
else (no)
:Prevent Unauthorized Changes;
:Notify Admin of Unauthorized Attempt;
endif

stop
@enduml

Eighteen
@startuml
start

:Submit Query;
:Log Query in Query Database;
:Notify Admin of New Query;
:Access Query;
:Display Query Details;
if (Can Resolve Query?) then (yes)
:Provide Response;
:Deliver Response to User;
else (no)
:Escalate to Higher Level Support;
:Notify User of Escalation;
endif

stop
@enduml

Ninteen
@startuml
start

:Access Contract Management;


:Retrieve Contracts List;
:Display Contracts to Admin;
:Select Contract to Modify;
:Show Contract Details;
:Update and Submit Changes;
if (Significant Changes?) then (yes)
:Require Legal Review;
:Delay Update Until Review Complete;
else (no)
:Save Contract Changes;
:Confirm Update;
endif
:Display Success Message;

stop
@enduml

Twenty
@startuml
start
:Select Charity for Validation;
:Retrieve Charity Details;
:Present Details to Admin;
:Conduct Validation Process;
if (Charity Meets Criteria?) then (yes)
:Update Charity Status to Valid;
:Display Validation Success Message;
else (no)
:Mark Charity as Invalid;
:Display Validation Failure Message;
endif

stop
@enduml

You might also like