Menu
support@nursinghomework.org
+1 714-215-3097

(Solved) : Write Program Java Fills Array A1 Representing Family Income 100 Random Doubles 5 000 50 0 Q35583888

Write a program in java that fills an array A1 (representing thefamily income) with 100 random doubles between 5 000 and 50 000. Atthe same time you fill an array A2 with 100 random numbersrepresenting the number of members in the family (a random numberbetween 1 and 10) A family is considered to be poor, if the incomeis under 12 000 and there is one person in the family OR the incomeis under 15 000 and there are 2 members or more in the family.Count the number of “poor families” in this simulation.

Leave a Reply

Your email address will not be published. Required fields are marked *