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;
Extracted 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