Question: PYTHON PLEASE - please use all of the options I am STUCK!!! Assignment 3 B: Decision Trees: Many videos games and interactive stories use decision
PYTHON PLEASE
please use all of the options I am STUCK!!!
AssignmentB:
Decision Trees: Many videos games and interactive stories use decision trees to allow for
different dialogue based on the players choices. For this assignment, you will create a basic
dialogue system using NESTED IF statements. The diagram on the next page shows the
different choices you can make, and the appropriate responses.
Note: The following diagram is a simplified form of UML Unified Modeling Language. It is one
way to display an algorithm so that people can understand it and implement it in code. For our
purposes, the boxes show the printed prompts and responses. The diamonds indicate decisions
after each prompt. For example, if I respond No to the first prompt, my program should print
the response shown at the end of the No line on the diagram.
You must call the class AssignmentB and put it in a file called AssignmentBpy
Make sure to use nested IF statements to complete this assignment. Your program should
produce the following output based on different user input.
Sample Output #:
Epic Quest Simulator
Hello stranger! Do you have time to hear my tale?
Yes
No
Ah then goodbye...
Sample Output #:
Epic Quest Simulator
Hello stranger! Do you have time to hear my tale?
Yes
No
Thank you! I come from the land of Pax Bisonica. Our country has been
taken over by a cruel tyrant!
Thats awful!
What can I do
Alas, it is truly terrible...
Please, you must journey to Pax Bisonica and free our country!
Okay
No
Hooray!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
