Question: PLEASE create a Decision Diagram with these info a) Decision Diagrams : Check Out Bike : Root: R (Is the user a registered user?) Yes:
PLEASE create a Decision Diagram with these info
a) Decision Diagrams:
Check Out Bike:
Root: R (Is the user a registered user?)
- Yes:
- PF (Do we have a payment method on file?)
- Yes:
- RL (Is the user's primary registration in the current location?)
- Yes:
- F (Does the user still have free trips available for today?)
- Yes: Bike Available (A)
- No: accountSuspended (S)
- No: accountSuspended (S)
- F (Does the user still have free trips available for today?)
- No: accountSuspended (S)
- Yes:
- RL (Is the user's primary registration in the current location?)
- No: accountSuspended (S)
- Yes:
- No: accountSuspended (S)
- PF (Do we have a payment method on file?)
- No: accountSuspended (S)
Boolean values associated with leaves:
- Bike Available (A) - User gets a bike.
- accountSuspended (S) - User does not get a bike.
Calculate Trip Fees (Flowchart with actions):
Root: R (Is the user a registered user?)
- Yes:
- PE (Does the user enter payment information?)
- Yes:
- E (Is the current trip longer than the free time?)
- Yes:
- CalculateExtraTimeFee() - Calculate extra time fee
- CalculateFine() - Calculate fine for late return (if applicable)
- No:
- CalculateBaseFee() - Calculate base fee
- Yes:
- E (Is the current trip longer than the free time?)
- No:
- CalculateFine() - Calculate fine for late return (if applicable)
- Yes:
- PE (Does the user enter payment information?)
- No:
- CalculateBaseFee() - Calculate base fee
- CalculateFine() - Calculate fine for late return (if applicable)
Note: "bikeAvailable" is not relevant to the "Calculate Trip Fees" activity.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
