5. Fuzzy Logics Consider the following three simple rules to represent fuzzy relationship between food quality and service in a restaurant as input variables and tip amount as output variables. 1) If the food is bad OR the service is poor, then the tip will be low 2) If the service is acceptable, then the tip will be medium 3) If the food is great OR the service is amazing, then the tip will be high. Given the membership functions illustrated in Figure 1 and 2 as follows. Food quality 1.0 0.8 0.6 0.4 0.2 0.0 1.0 0.8 0.6 0.4 0.2 0.0 1.0 0.8 0.6 0.4 0 0.2 0.0 0 Figure 1. Food Quality and Service Membership Functions Service quality 1) Food quality was 6.0, and 2) Service was 8.0 10 Tip amount 15 Bad Decent Great Poor Acceptable Amazing 20 Figure 2. Tip Membership Functions 10 10 Low Medium High Using the clipped center of gravity method, compute the tip amount based on the following circumstances:

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter5: Looping
Section: Chapter Questions
Problem 3GZ
icon
Related questions
Question
Please help with the question on the picture below thanks! Ps: dont use code but please USE CLIPPED CENTRAL OF GRAVITY
5. Fuzzy Logics
Consider the following three simple rules to represent fuzzy relationship between food quality and
service in a restaurant as input variables and tip amount as output variables.
1) If the food is bad OR the service is poor, then the tip will be low
2) If the service is acceptable, then the tip will be medium
3) If the food is great OR the service is amazing, then the tip will be high.
Given the membership functions illustrated in Figure 1 and 2 as follows.
Food quality
1.0
Bad
0.8
Decent
Great
0.6
0.4
0.2
0.0
2
4
10
Service quality
1.0
Poor
0.8
Acceptable
Amazing
0.6
0.4
0.2
0.0
4.
6.
10
Figure 1. Food Quality and Service Membership Functions
Tip amount
1.0
Low
0.8
Medium
0.6
High
0.4
0.2
0.0
5
10
15
20
25
Figure 2. Tip Membership Functions
Using the clipped center of gravity method, compute the tip amount based on the following
circumstances:
1) Food quality was 6.0, and
2) Service was 8.0
Transcribed Image Text:5. Fuzzy Logics Consider the following three simple rules to represent fuzzy relationship between food quality and service in a restaurant as input variables and tip amount as output variables. 1) If the food is bad OR the service is poor, then the tip will be low 2) If the service is acceptable, then the tip will be medium 3) If the food is great OR the service is amazing, then the tip will be high. Given the membership functions illustrated in Figure 1 and 2 as follows. Food quality 1.0 Bad 0.8 Decent Great 0.6 0.4 0.2 0.0 2 4 10 Service quality 1.0 Poor 0.8 Acceptable Amazing 0.6 0.4 0.2 0.0 4. 6. 10 Figure 1. Food Quality and Service Membership Functions Tip amount 1.0 Low 0.8 Medium 0.6 High 0.4 0.2 0.0 5 10 15 20 25 Figure 2. Tip Membership Functions Using the clipped center of gravity method, compute the tip amount based on the following circumstances: 1) Food quality was 6.0, and 2) Service was 8.0
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Structure chart
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole