Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi every body thanks for your help. 10.1111111111part 1 Create a new Java class inside your project folder. The name of the class should be:

Hi every body thanks for your help.

10.1111111111part 1

Create a new Java class inside your project folder. The name of the class should be: CountFamilies

Write a program that counts the number of families whose income is below a certain level.

Begin your program by asking the user to enter the number of families. Store this value in a variable called numOfFamilies.

Next, create an ARRAYwhose size is numOfFamilies. Then you will read numOfFamilies values, representing family incomes, from the keyboard and place them into the array.

Next, find the maximum income of all the values entered, and print this value to the screen.

Finally, count the families that make less than 10% of the maximum income. Display the income of each of these families, then display the count. Make sure you use correct grammar (i.e. 1 family, 2 families).

The following is an example of what your MIGHT see on the screen when your program runs. The exact output depends on what values that the user types in while the program runs. The user's values are shown below in italics:

Please enter the number of families: 5 Enter an income: 8500 Enter an income: 109000 Enter an income: 49000 Enter an income: 9000 Enter an income: 67000 The maximum income is: 109000 The incomes of families making less than 10% of the maximum are: 8500 9000 for a total of 2 families

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Describe the sources of long term financing.

Answered: 1 week ago

Question

5. If yes, then why?

Answered: 1 week ago

Question

3. What changes should I be making?

Answered: 1 week ago