Financial Assistance Application Create the Financial Assistance Application. A non-governmental organization needs your application 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 house- hold 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 house- hold 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. The program 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. The program output should be formatted as shown in the Sample Run. Note: You must use at least one function in your code.
Financial Assistance Application Create the Financial Assistance Application. A non-governmental organization needs your application 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 house- hold 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 house- hold 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. The program 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. The program output should be formatted as shown in the Sample Run. Note: You must use at least one function in your code.
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 10PE
Related questions
Question
![Financial Assistance Application
Create the Financial Assistance Application. A non-governmental organization
needs your application 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 house-
hold 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 house-
hold 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. The program 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. The program output
should be formatted as shown in the Sample Run.
Note: You must use at least one function in your code.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fba219bff-d0eb-41cb-9818-c9d5df93af0d%2F4a26249a-4830-4006-9517-b0e7fce2c692%2F0tqdsn5_processed.png&w=3840&q=75)
Transcribed Image Text:Financial Assistance Application
Create the Financial Assistance Application. A non-governmental organization
needs your application 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 house-
hold 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 house-
hold 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. The program 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. The program output
should be formatted as shown in the Sample Run.
Note: You must use at least one function in your code.
![SAMPLE RUN
What is the household income (-1 to quit)? 30000
How many children? 3
The assistance amount is $4500.00.
What is the household income (-1 to quit)? 20000
How many children? 2
The assistance amount is $3000.00.
What is the household income (-1 to quit)? 35000
How many children? 1
The assistance amount is $0.00.
What is the household income (-1 to quit)? -1
What is the household income (-1 to quit)? 105000
How many children? 3
The assistance amount is $0.00.
What is the household income (-1 to quit)? 10000
How many children? 1
The assistance amount is $2000.00.
What is the household income (-1 to quit)? -1](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fba219bff-d0eb-41cb-9818-c9d5df93af0d%2F4a26249a-4830-4006-9517-b0e7fce2c692%2Fy9c48ci_processed.png&w=3840&q=75)
Transcribed Image Text:SAMPLE RUN
What is the household income (-1 to quit)? 30000
How many children? 3
The assistance amount is $4500.00.
What is the household income (-1 to quit)? 20000
How many children? 2
The assistance amount is $3000.00.
What is the household income (-1 to quit)? 35000
How many children? 1
The assistance amount is $0.00.
What is the household income (-1 to quit)? -1
What is the household income (-1 to quit)? 105000
How many children? 3
The assistance amount is $0.00.
What is the household income (-1 to quit)? 10000
How many children? 1
The assistance amount is $2000.00.
What is the household income (-1 to quit)? -1
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning