Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# please with screen shot Assignment3C: Decision Trees: Many videcs games and interactive stories use decision trees to allow for different dialogue based on the

C# please with screen shot
image text in transcribed
image text in transcribed
Assignment3C: Decision Trees: Many videcs games and interactive stories use "decision trees" to allow for different dialogue based on the player's choices. For this assignment, you will create a (basic) dialogue system using NESTED IF statements. The diagham 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 aigorithm so that people can understand it and implement it in code. For our purposes, the boxes show the printed prompts and responses. The diamonds indicabe decisions after each prompt. For example, if I respond "No, I just tumed off the light." 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 Assignment3C and put it in a file called "Assignment3C.java", "Assignment3C.cs", or "Assignment3C.cpp" Make sure to use nested IF statements to complete this assignment. Your program shou produce the following output besed on different user input (Dont worry about invalid input). Sarple cutput tit: [Cretsceons Park Dialog] Oh no, the power has gone out at Cretaceous Park! 1) What does that mean? 2) No, I fust turned the 1 ight off. No, I fust turned off the light Oh thank goodness! Sample Qutput it: [Cretaceous Park Dialog] Oh no, the power has gone out at Cretaceous Parkt 1) What does that mean? 2) No, I just turned the kight off. What does that mean? The dinosaurs wili get losse... agaia.... 1) Life finds a way... 2) What do we do? tife finds a why. That's not helprul right nowt. We have to evacuate the parkf Sample output 131 (Crotaceoun Park buates) oh no, the power has gone out at Cretaceoua Parkt 1) What does that mean? 2) No, I just turned the dight off. What does that mean? The dinosaurs wit1 get loose... again... 1) Life finds a way... 2) What do we do? What do we do? We have to evacuate the park

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions