Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essentials Of Forensic Accounting

Authors: Michael A Crain, William S Hopwood

2nd Edition

1948306441, 978-1948306447

More Books

Students also viewed these Accounting questions

Question

1. To gain knowledge about the way information is stored in memory.

Answered: 1 week ago