Answered step by step
Verified Expert Solution
Link Copied!

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

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

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

0764549634, 9780764549632

More Books

Students also viewed these Databases questions

Question

5. Develop the succession planning review.

Answered: 1 week ago