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!!!
Assignment3B:
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 Assignment3B and put it in a file called Assignment3B.py,
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 #1:
[Epic Quest Simulator]
Hello stranger! Do you have time to hear my tale?
1) Yes
2) No
2
Ah, then goodbye...
Sample Output #2:
[Epic Quest Simulator]
Hello stranger! Do you have time to hear my tale?
1) Yes
2) No
1
Thank you! I come from the land of Pax Bisonica. Our country has been
taken over by a cruel tyrant!
1) Thats awful!
2) What can I do?
1
Alas, it is truly terrible...
Please, you must journey to Pax Bisonica and free our country!
1) Okay
2) No
1
Hooray!
 PYTHON PLEASE - please use all of the options I am

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 Databases Questions!