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
jonny [76]
3 years ago
5

Which one of the following is the correct code snippet for calculating the largest value in an integer array list aList?

Computers and Technology
2 answers:
vodka [1.7K]3 years ago
7 0

Answer:

Option a.  int max = aList.get(0); for (int count = 1; count < aList.size(); count++) { if (aList.get(count) > max) { max = aList.get(count); } }

is the correct code snippet.

Explanation:

Following is given the explanation for the code snippet to find largest value in an integer array list aList.

  1. From the array list aList, very first element having index 0 will be stored in the variable max (having data type int).
  2. By using for starting from count =1 to count = size of array (aList), we will compare each element of the array with first element of the array.
  3. If any of the checked element get greater from the first element, it gets replaced in the variable max and the count is increased by 1 so that the next element may be checked.
  4. When the loop will end, the variable max will have the greatest value from the array aList.

i hope it will help you!

ExtremeBDS [4]3 years ago
3 0

Answer:

dont delete this question until u can crack this code

Explanation:

    1

   1 1

   2 1

 1 2 1 1

1 1 1 2 2 1

3 1 2 2 1 1

crack this code!!!!

You might be interested in
How many pins are typical molex connector?
kondor19780726 [428]
There are 4 connectors, from left to right the pins are +5v ground ground +12v
5 0
3 years ago
You have been tasked to set up an authentication server on a dmz that will allow only users from a partner company. what kind of
Lapatulllka [165]

The question above has multiple choices as follows;

a. Internet

<span> b. Intranet <span> c. Extranet <span> d. World Wide Web
Correct answer is C. Extranet
<span>You are able to use an Extranet to securely share part of a business’s operation with vendors, suppliers, customers, partners or any other business organization.  We can also view an extranet as an intranet extended to users outside the company.</span> </span></span></span>




7 0
3 years ago
The following program declares an array of char named as myString There are 6 following cases (a, b, c, d, e, f) to access myStr
yuradex [85]

Answer:

See explaination

Explanation:

a.

myString is "Hello the world"

b.

prints "15"

c.

This is invalid.

We have to use strcpy_s to copy strings

FIX:

strcpy_s(s,"Marylane");

d.

reading string upto length 80 from the user and stored it in myString variable

e.

prints the string enetered by user to console

f.

replacing 7th character by 't'

3 0
3 years ago
when water is poured into a styrofoam cup, nothing happens. the water stays in the cup and it can be used for drinking. however,
KengaRu [80]

The backside of the cup disappears and the fuel pours out due to the fact styrofoam is a trading name for polystyrene (PS) foams, Gasoline is crafted from a mixture of hydrocarbons, so it dissolves PS, generating a viscose paste.

Gasoline is crafted from a combination of volatile, flammable liquid hydrocarbons derived from petroleum and used as gas for internal-combustion engines. It is likewise used as a solvent for oils and fats. Gasoline is a form of gas crafted from crude oil and different petroleum liquids. Gasoline is mostly used as an engine gas in vehicles.

Learn more about gasoline at brainly.com/question/28762820

#SPJ4

3 0
1 year ago
in 1970s British artist harlod Cohen created a computer program that could produce paintings, how did it impact present art
docker41 [41]
The computerization of art meant that certain details and intricacy could be done which previously had been impossible give the limitations of the human body.
6 0
3 years ago
Other questions:
  • Dr. Joon asks her students how to insert a table in an Excel workbook. The students record the steps a chart. Which students lis
    15·1 answer
  • Assume the secret key is: (1, 2, 3, 4) -&gt; (3, 1, 4, 2); assume the plaintext THEYLOVEIT. If the sub-block length is 3, what i
    6·1 answer
  • Which programming language looks similar to human languages?
    12·1 answer
  • Use the drop-down menu to identify which command is used to do the activities.
    10·1 answer
  • host b is sending an email intented for the user on host a to the mail server what protocol is being used to send the message
    10·1 answer
  • Implement the function printTwoLargest that inputs an arbitrary number of positive numbers from the user. The input of numbers s
    14·1 answer
  • Describe your WGU program, including two specific requirements that this degree has for completion.
    14·1 answer
  • An electric kettle has the resistance of 30ohms what will flow when it connected to a 240v supply... find also the power rating
    6·1 answer
  • 4. Compute the following additions
    7·1 answer
  • The original programs awaiting tanslation is called​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!