1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
emmasim [6.3K]
4 years ago
9

Create a static method called findlargest, which takes an array of integers as an input parameter and returns the array index of

the largest integer in the array. if there are positions that are tied for largest, the method should return the first index with a largest value.
Computers and Technology
1 answer:
Inga [223]4 years ago
5 0
Public static int findlargest( int[] theArray )
{
    int index = 0;
    int maxVal = 0;
    for( int i = 0; i < theArray.length; i++ )
    {
        if( theArray[ i ] > maxVal )
        {
            maxVal = theArray[ i ];
            index = i;
        }
    }
    return( index );
}
You might be interested in
When using NAND gate instead of NOR gate in SR flip-flop, Q and Q’ both become one when?
Anika [276]

Answer:

  S and R both are 0

Explanation:

A <em>0</em> at the input of a NAND gate causes its output to be <em>1</em>. There is no other logic between the output NAND gate and the S or R inputs, so both inputs 0 will make both outputs 1.

4 0
4 years ago
NEED HELP
amid [387]

Answer:

i would do B

Explanation:

I YOUNGI

I MIDDLE I

I   AGED  I

I     MEH   I

I_______ I

\ kinda old/

  \ ____ /

   I OLD I

3 0
3 years ago
When engineers consider _____, they propose giving up a benefit of one proposed design in order to obtain a benefit of a differe
spin [16.1K]

Answer:

The answer is A. Constraint.

5 0
3 years ago
The ________________ command ends the current command session
Lemur [1.5K]

Answer:

exit

Explanation:

When the Command Prompt window is active, you can end a Command Prompt session in any of the following ways: Type exit at the command prompt. Click the Close button. Click the Control menu icon, and choose Close.

5 0
4 years ago
Read 2 more answers
How many integer types are there in python​
Setler79 [48]
In python you can have several types of numbers such as plain integers, long integers, floating-point numbers and complex numbers.
5 0
3 years ago
Other questions:
  • Which one of the following downloads and uploads files to and from a server? A. Client B. Internet protocol C. Server D. Worksta
    9·1 answer
  • Which of the following explains why computers can be used in accounts payable? Computers can use random steps to identify the du
    7·2 answers
  • The Mesozoic is known as the _________
    7·1 answer
  • Most colleges require blank years of foriegn language for admission
    9·1 answer
  • When activated, an Excel object has all the features of an Excel
    8·2 answers
  • Suppose you can access the caches in the local DNS servers of your department. Can you propose a way to roughly determine the We
    14·1 answer
  • Dummy activities A. are found in both AOA and AON networks. B. are used when two activities have identical starting and ending e
    9·2 answers
  • Data are sent through a network on bundles called _______. select one:
    8·2 answers
  • Computer memory uses different numbers of bytes to store different data types.
    7·1 answer
  • click the view lab button. restart the computer and press the f2 or delete key on your keyboard to enter the bios setup program.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!