Question: using python Write a function that implements the following formula to calculate the amount of financial assistance for families in need: If the annual family

using python Write a function that implements the following formula to calculate the amount of financial
assistance for families in need:
If the annual family income is between $
30
,
000
and $
40
,
000
and the family has at least
3
children, the assistance amount will be $
1
,
000
per child.
If the annual family income is between $
20
,
000
and $
30
,
000
and the family has at least
2
children, the assistance amount will be $
1
,
500
per child.
If the annual family income is less than $
20
,
000
,
the assistance amount will be $
1
,
000
per
child.
Write a program that asks for the family income and the number of children, then print the
amount of assistance that your function returns. Use
-
10
,
as a sentinel value for the input.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!