PYTHON
A non-governmental organization needs a program to calculate the amount of financial assistance for needy families. The formula is as follows:
If the annual household income is between $30,000 and $40,000 and the household has at least three children, the amount is $1,000 per child.
If the annual household income is between $20,000 and $30,000 and the household has at least two children, the amount is $1,500 per child.
If the annual household income is less than $20,000, the amount is $2,000 per child. Implement a function for this computation. Write a program that asks for the household income and number of children for each applicant, printing the amount returned by your function. Use –1 as a sentinel value for the input.
def calcFinancialAssistance(income, children):
#check income range
if (income >= 30000 and income < 40000 and
children >= 3):
return children *
1000
if (income >= 20000 and income < 30000 and
children >= 2):
return children *
1500
if (income < 20000):
return children *
2000
while(True):
#prompt user for income
income = int(input("Enter Household Income
(Enter -1 to exit): "))
if(income == -1):
break
children = int(input("Enter Number of Children:
"))
print(f'Financial Assitance of
${calcFinancialAssistance(income, children)} can be availed!')
PYTHON A non-governmental organization needs a program to calculate the amount of financial assistance for needy...
1). The retirement benefit of the Social Security program is
considered a progressive benefit with a regressive financing
scheme.
(1) How is the Social Security benefit progressive?
(2) How is its financing scheme regressive?
2). One of the main goals of the ACA (Patient Protection and
Affordable Care Act of 2010, aka Obamacare) was to provide
affordable health care to the uninsured.
1. What were the THREE primary pieces of the law that were meant to
provide coverage for everyone...
Language C++ Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax...
I HAVE TO SOLVE A C++ PROGRAM, THIS ARE THE INSTRUCTIONS: Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax...
%%Python Question%% get_min_payment() • Parameters ◦ the total amount of the mortgage (called the principal; should be a positive number) ◦ the annual interest rate (should be a float between 0 and 1) ◦ the term of the mortgage, in years (should be a positive integer; default value: 30) ◦ the number of payments per year (should be a positive integer; default value: 12) • Functionality ◦ Compute the minimum mortgage payment. Should use the formula A= Pr(1+r) n (1+r)...
This interactive program focuses on if/else statements, Scanner, and returning values. Turn in a file named Budgeter.java. To use a Scanner for console input, you must import java.util.*; in your code. This program prompts a person for income and expense amounts, then calculates their net monthly income. Below are two example logs of execution from the program. This program’s behavior is dependent on the user input (user input is bold and underlined below to make it stand out and differentiate...
This interactive program focuses on if/else statements, Scanner, and returning values. Turn in a file named Budgeter.java. To use a Scanner for console input, you must import java.util.*; in your code. This program prompts a person for income and expense amounts, then calculates their net monthly income. Below are two example logs of execution from the program. This program’s behavior is dependent on the user input (user input is bold and underlined below to make it stand out and differentiate...
please use python and provide run result, thank you!
click on pic to make it bigger
For this assignment you will have to investigate the use of the Python random library's random generator function, random.randrange(stop), randrange produces a random integer in the range of 0 to stop-1. You will need to import random at the top of your program. You can find this in the text or using the online resources given in the lectures A Slot Machine Simulation Understand...
this is all the information given
Personal Financial Planning Mini-Case Jeff and Mary Douglas, a couple in their mid-30s, have two children - Paul age 6 and Marcy age 7. The Douglas' do not have substantial assets and have not yet reached their peak earning years. Jeff is a general manager of a jewelry manufacturer in Providence, RI while Mary teaches at the local elementary school in the town of Tiverton, RI. The family needs both incomes to meet their...
Please help me answer theses practice questions
QUESTION 2 Which of the following can a country implement to protect local industries (e.g. bicycles) according to the video on the deceptive promise of free trade? Border walls local training programs to strengthen local industries protectionist policies such as tarrifs creating a high minimum wage locally governments can't do anything QUESTION 3 Which of the following European countries has a trade surpluse with the US as well as most other European countries...
FISCAL POLICY IN THEORY: March, 2020: we are on the verge of Congress and the President passing legislation that will empower the federal government to spend an unprecedented amount of EXTRA money not seen since World War 2 ---- in order to address the pandemic but also to help cushion the blow financially of perhaps ten or twenty million Americans --- or more --- losing their jobs, and thus suffering a drop in income. The scale of the 2020 recession...