Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I have these numbers o, and I have the codes blew. But I can't display the number and their indexes Index 11, 18, 24 an
I have these numbers o, and I have the codes blew. But I can't display the number and their indexes Index 11, 18, 24 an so on has a maximum number . For instance, .Please spaces are reflecting that each number stands alone. You can ignore crates and user what ever vairibale comes into your mind. Just dispaly max numbers and their indexes.
0 3 1 1 7 0 3 1 7 6 5 9 1 1 7 4 4 9 1 7 3 5 9 7 5 9 0 7 7 4 8 3 2 8 9 9 2 2 6 5 4 1 7 8 3 5 7 0 9 3 0 1 5 5 9 7 5 0 9 9 8 4 6 4 2 0 5 4 6 7 2 1 3 4 2 4 5 4 1 3 8 6 5 2 4 8 6 1 4 2 4 9 0 2 5 0 1 1 4 6 8 8 9
int cratsNum [] = new int[99]; //int max = 0; houseNo ++; for (int i = 0; i < cratsNum.length; i++) { cratsNum[i] = crates; if(cratsNum[i] > max) { max = cratsNum[i]; cratsNum[i] = i; houseNo = i; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started