Write collection of production rules to calculate electricity bill as per following rules: •If the units consumed are less than and equal to 300, then the cost is Rs 10/- per unit. •If the units consumed are more than 300 and less than and equal to 500, then the cost is Rs 12/- per unit. •If the units consumed are more than 500 and less than 1000, then the cost is Rs 15/- per unit and surcharge of 15% of bill is added. •If the units consumed are more than 1000, then the cost is Rs 15/- per unit and surcharge of 25% of bill is added. Trace the production rules for the sample execution of the system given below;Write collection of production rules to calculate electricity bill as per following rules:

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter1: Getting Started With Excel
Section: Chapter Questions
Problem 14RA
icon
Related questions
Question

Write collection of production rules to calculate electricity bill as per following rules:

•If the units consumed are less than and equal to 300, then the cost is Rs 10/- per unit.
•If the units consumed are more than 300 and less than and equal to 500, then the cost is Rs 12/- per unit.
•If the units consumed are more than 500 and less than 1000, then the cost is Rs 15/- per unit and surcharge of 15% of bill is added.
•If the units consumed are more than 1000, then the cost is Rs 15/- per unit and surcharge of 25% of bill is added.
Trace the production rules for the sample execution of the system given below;Write collection of production rules to calculate electricity bill as per following rules:
•If the units consumed are less than and equal to 300, then the cost is Rs 10/- per unit.
•If the units consumed are more than 300 and less than and equal to 500, then the cost is Rs 12/- per unit.
•If the units consumed are more than 500 and less than 1000, then the cost is Rs 15/- per unit and surcharge of 15% of bill is added.
•If the units consumed are more than 1000, then the cost is Rs 15/- per unit and surcharge of 25% of bill is added.
Trace the production rules for the sample execution of the system given below;
Enter Units: 700
Electricity Bill = 12075
Note that user has entered 700 units, as per rules its bill has been calculated as 12075 PKR
Transcribed Image Text:Enter Units: 700 Electricity Bill = 12075 Note that user has entered 700 units, as per rules its bill has been calculated as 12075 PKR
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Problems on Dynamic Programming
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
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning