public class FiveBrothersStarter { public static void main(String[] args) { //Calculate the ages of Mr. Dixon and his four brothers. Their age ranges are between 30 and 50. //Oldest to youngest their names are Jim, Dan, Bill, Ken and Kyle int check1, check2, check3, check4, check5, check6, check7; check1=0; // Counter - All brothers are between 30 and 49 check2=0; // Counter -Average age is exactly 42 check3=0; // Counter - None of the brothers are twins check4=0; // Counter -Jim is 14 years older than Kyle, Dan is 1 year older than Bill check5=0; // Counter -Bill is only brother with even number of years check6=0; // Counter - Kyle is only brother still in his 30s check7=0; // Counter - Bill has same digit repeated (ones digit and tens digit is same) for(int jim=30; jim < 50; jim++) for(int dan=30; dan <50; dan++) for(int bill=30; bill <50; bill++) for(int ken=30; ken <50; ken++) for(int kyle=30; kyle <50; kyle++) { check1++; //Step 2 - Write an if statement to determine if their average age is exactly 42. //If it is, increase the check2 counter. //Continue through checks... //Inside last check (check7), if all conditions are met, output the values of all brothers ages } System.out.println(check1); System.out.println(check2); System.out.println(check3); System.out.println(check4); System.out.println(check5); System.out.println(check6); System.out.println(check7); } }