Assignment:
An if-then statement is the simplest form of the inference block of a business rule. A set of “if-then” statements are such that the “if” is the condition of the rule and the “then” is the action. Typically, rules that are based on multiple if-then statements are evaluated sequentially, and each “true” condition triggers some action. Therefore, an if-then statement set may result in more than one action. Consider an online vendor that gives discounts, matches a competitor’s price, or offers free shipping to loyal customers depending on the customer loyalty status and the size of the order.
a. Create an inference block (i.e., a set of if-then statements) for a rule that provides different discounts (5%, 10%, and 15%) to customers according to their loyalty status (bronze, silver, gold).
b. Enhance the rule to provide free shipping to any loyal customer for orders of more than $100.
c. Gold customers are given a “best price” guarantee, which means that the price they pay is never higher than the competitors’ price. Explain how a business rule could be used to implement this policy.
Provide complete and step by step solution for the question and show calculations and use formulas.