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:
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
Related questions
Question
Please help with the question on the picture below thanks!
Ps: dont use code but please USE CLIPPED CENTRAL OF GRAVITY
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
Knowledge Booster
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
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole