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)
          • No: accountSuspended (S)
      • No: accountSuspended (S)
    • No: accountSuspended (S)
  • 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
      • No:
        • CalculateFine() - Calculate fine for late return (if applicable)
  • 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!