Question
Q.No.1. Write collection of production rules in OPS-5 format which should input monthly income from user and display the total annual tax as per criteria
Q.No.1. Write collection of production rules in OPS-5 format which should input monthly income from user and display the total annual tax as per criteria given below;
Annual Income Tax Rate
0 - 400,000 0%
400,001 - 500,000 5%
500,001 - 700,000 7%
700,001 - 1,000,000 10%
Above 1,000,000 15%
After defining production rules, you are required to trace the sample call given below;
Enter Monthly Income: 40000
Annual Tax = 24000
User entered 40,000 as monthly income so the annual income will be 480,000. Hence 5% tax is applicable, which is 24,000 (i.e. 5% from total annual income).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started