Write a MATLAB script that follows a set of conditions to decide if you shoul market. Create a flowchart to clearly and correctly describe the process of the de Below are the conditions needed to develop the decision tree: a. Ask yourself if you are out of milk? b. If true, is it raining? If false, do not go to the market? c. If it is raining, then do not go to the market. d. If it is not raining, then go to the market. Hint: The script must request user input through a series of questions.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Problem #3

Please provide the code for Matlab and also provide a flowchart using powerpoint or word, please

Please submit your MATLAB .m file and a PDF copy of the plots produced from the following
exercise.
1. Write a MATLAB script that follows a set of conditions to classify animals. Create a
flowchart to clearly and correctly describe the process of the decision tree. Below are the
conditions needed to develop the decision tree:
a.
Does the animal have feathers?
b.
If true, can it fly? If false, does it have fins?
c. If it can fly, then it is a hawk. If it cannot fly, then it is a penguin.
d. If it has fins, then it is a dolphin. If it does not have fins, then it is a bear.
Hint: The script must request user input through a series of questions.
2. Write a MATLAB script that follows a set of conditions to decide if you should go to the
market. Create a flowchart to clearly and correctly describe the process of the decision tree.
Below are the conditions needed to develop the decision tree:
a. Ask yourself if you are out of milk?
b. If true, is it raining? If false, do not go to the market?
c. If it is raining, then do not go to the market.
d. If it is not raining, then go to the market.
Hint: The script must request user input through a series of questions.
3. Write a MATLAB script that follows a set of conditions to decide if someone is vegetarian
or not. Create a flowchart to clearly and correctly describe the process of the decision tree.
Below are the conditions needed to develop the decision tree:
a. Did the guest eat chicken?
b. If true, then the guest is not vegetarian. If false, did the guest eat mutton?
c. If true, then the guest is not vegetarian. If false, did the guest eat seafood?
d. If true, then the guest is not vegetarian. If false, then the guest is vegetarian.
Hint: The script must request user input through a series of questions.
4. Like problem #1, #2 and #3 write a MATLAB script that follows a set of conditions. Create
a flowchart to clearly and correctly describe the process of the decision tree. The dilemma
you are having is whether to quit your job or not. However, before you can decide there
are some important points and questions to consider. Ask yourself a minimum of three
questions to help you decide.
Transcribed Image Text:Please submit your MATLAB .m file and a PDF copy of the plots produced from the following exercise. 1. Write a MATLAB script that follows a set of conditions to classify animals. Create a flowchart to clearly and correctly describe the process of the decision tree. Below are the conditions needed to develop the decision tree: a. Does the animal have feathers? b. If true, can it fly? If false, does it have fins? c. If it can fly, then it is a hawk. If it cannot fly, then it is a penguin. d. If it has fins, then it is a dolphin. If it does not have fins, then it is a bear. Hint: The script must request user input through a series of questions. 2. Write a MATLAB script that follows a set of conditions to decide if you should go to the market. Create a flowchart to clearly and correctly describe the process of the decision tree. Below are the conditions needed to develop the decision tree: a. Ask yourself if you are out of milk? b. If true, is it raining? If false, do not go to the market? c. If it is raining, then do not go to the market. d. If it is not raining, then go to the market. Hint: The script must request user input through a series of questions. 3. Write a MATLAB script that follows a set of conditions to decide if someone is vegetarian or not. Create a flowchart to clearly and correctly describe the process of the decision tree. Below are the conditions needed to develop the decision tree: a. Did the guest eat chicken? b. If true, then the guest is not vegetarian. If false, did the guest eat mutton? c. If true, then the guest is not vegetarian. If false, did the guest eat seafood? d. If true, then the guest is not vegetarian. If false, then the guest is vegetarian. Hint: The script must request user input through a series of questions. 4. Like problem #1, #2 and #3 write a MATLAB script that follows a set of conditions. Create a flowchart to clearly and correctly describe the process of the decision tree. The dilemma you are having is whether to quit your job or not. However, before you can decide there are some important points and questions to consider. Ask yourself a minimum of three questions to help you decide.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Hiring Problem
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education