Design and write a java program that uses nested if


Need help with a Java program:

Design and write a Java program that uses nested if statements. Ask the user how many kids were in their family when growing up and how many bedrooms were available for the kids in the house. For the sake of simplicity let's only code for 1, 2, or 3 or more kids, and 1, 2, 3 or more bedrooms. Look at the following chart and output a message for every combination of kids and bedrooms.

How many test cases do you think you need to properly test all possible ways this program will work? I'm only requiring you to provide 3 written ones, but you may need more.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Design and write a java program that uses nested if
Reference No:- TGS01657886

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)