CSC150 Assignment 4 solved

$30.00

Original Work ?

Download Details:

  • Name: AssignmentFour-kdowbm.zip
  • Type: zip
  • Size: 62.07 KB

Category: Tag: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (1 vote)

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:

Enter growth rate: 4.5
Enter inflation rate: 2
Increase personal & business taxes and decrease discount rate.

Enter growth rate: 0.9
Enter inflation rate: 2.4
Reduce business taxes.

Enter growth rate: 3
Enter inflation rate: 5
No change in economic policy.

Notes:

  1. 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.”

  2. To get full credit for an assignment, your program must solve the assignment problem completely.

  3. Please add comments to the source code. Your program should have a reasonable amount of comments.

  4. At the very beginning of the class, there should be a block comment containing student name, class, section number, and a brief program description.

  5. Follow the programming style and guidelines discussed in class, such as using meaningful names for variables and camel case convention for variables, classes, etc.