Description
The following rules illustrate traditional economic policy theory in terms of regulating a government’s economy.
a) If the annual growth rate is less than 1%
-
If inflation is less than 3%, then increased economic policy rate.
-
Otherwise (inflation ≥ 3%), reduce personal income tax, and decrease business taxes.
Increase economic policy rate to:-
Reduce inflation.
-
b) If the annual growth rate is greater than 4%
-
If inflation is less than 2%, then increase personal income tax rate.
-
Otherwise (inflation ≥ 2%), reduce personal income tax, and increase economic policy rate.
Otherwise: No change in economic policy rate.
Write a program that displays these economic policy reactions. More specifically:
-
Ask the user to input the annual growth rate and the annual inflation rate.
-
Display the proper economic policy message based on the standard economic policy for the given economic situation, then output “No change in economic policy”.
Sample Runs:
Notes:
-
The program must compile without syntax errors; in the best case 50% of the assignment logic will be developed, and your program is “mentally correct.”
-
To get full credit for an assignment, your program must solve the assignment problem completely.
-
Please add comments to the source code. Your program should have a reasonable amount of comments.
-
At the very beginning of the class, there should be a block comment containing student name, class, section number, and a brief program description.
-
Follow the programming style and guidelines discussed in class, such as using meaningful names for variables and camel case convention for variables, classes, etc.