Question: Write a Java program Business P5.28 non-governmental organization needs a program to calculate the amount of finan- cial assistance for needy families. The formula is
Write a Java program
Business P5.28 non-governmental organization needs a program to calculate the amount of finan- cial 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 household has at least two children, the amount is $1,500 per child child. .If the annual household income is between $20,000 and $30,000 and the If the annual household income is less than $20,000, the amount is $2,000 per Implement a method for this computation. Write a program that asks for the house- hold income and number of children for each applicant, printing the amount returned by your method. Use-1 as a sentinel value for the input. The main method should contain a sentinel controlled loop that asks for the user input, calls the method and displays the results until the sentinel value is entered by the user. The method defined should accept the household income and number of children and return the amount of financial assistance. (Which Method Case is this?)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
