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
zysi [14]
3 years ago
5

What does the following code do? Assume list is an array of int values, temp is some previously initialized int value, and c is

an int initialized to 0. for (int j = 0; j < list.length; j++) if (list[j] < temp) c++;
Computers and Technology
1 answer:
stellarik [79]3 years ago
8 0

Answer:

<h2><em>The folowing code counts the number of elements in list that are less than temp.</em></h2>

Explanation:

<em>Because an array is an object that stores many values of the same type. An array element is one value in array. An array index is an integer indicating a position in an array. Like strings, arrays use zero base indexing, that is array indexes start with 0(zero).</em>

You might be interested in
Clunker Motors Inc. is recalling all vehicles in its Extravagant line from model years 1999-2002 as well all vehicles in its Guz
Aleksandr [31]

Answer:

The following code is written in java programming language:

//set if statement

if (((modelYear >= 1999) && (modelYear <= 2002) && (modelName == "Extravagant")) || ((modelYear >= 2004) && (modelYear <= 2007) && (modelName == "Guzzler")))

{

recalled = true;    //initialized Boolean value

}

else      //set else statement

{

recalled = false; ////initialized Boolean value

}

Explanation:

Here, we set the if statement and set condition, if the value of modelYear is greater than equal to 1999 and less that equal to 2002 and modelName is equal to "Extravagant" or the value of modelYear is greater than equal to 2004 and less than equal to 2007 and the model year is equal to "Guzzler", than "recalled" initialized to "true".

Otherwise "recalled" initialized to "true".

5 0
4 years ago
What's the drawback of using Screened Subnet (DMZ)?
lesantik [10]

It's more expensive, it's more difficult to configure and maintain and it can be more difficult to troubleshoot

4 0
4 years ago
_____ refers to the busiest calling hour of the day, week, month or year. And _____ refers to the average length of time the sub
Butoxors [25]

Answer: a) busy hour  b) Average handle time.

Explanation:

a) In order to design a telephony circuit, trunk, or call center, it is needed to take into account the busiest calling hour (as a "sliding" 60-minute period) in one day, or week, month or year, generally calculated as an average.

This period is called the "busy hour" and is used to compute the traffic intensity, in Erlangs, considering that if the circuit is busy 100% of the time during 3600 seconds, it will be cursing 1 Erl of traffic.

This traffic can result from 60 calls of 1 min each, 36 calls of 100 sec each, or any combination that have the same outcome of 1 Erl.

b) In order to define, for instance, the number of employees in a call center, a very important parameter is the average time used for each call, adding the queuing time, the true talk time and any other time needed to  set up a successful call, i.e., the time that the subscriber stays on the phone after putting the call.

This time is known as AHT (Average Handle Time).

3 0
4 years ago
What are the information ethics associated with IP
Naily [24]

Answer:

The IP stands for intellectual property. And the information ethics related to the IP are the transaction privacy, piracy and the privacy for the ease and giveaways, investigation, namelessness. The trade details must be kept private, and not disclosed to anybody, and the piracy is never allowed. Also, the privacy of all sorts must be ensured for ease and giveaways, surveillance, and confidentiality.

Explanation:

Please check the answer section.

3 0
4 years ago
Betty is developing a machine learning algorithm that looks at vast amount of data collected over 100 years and checks for relat
wolverine [178]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

Betty is developing a machine learning algorithm that looks at a vast amount of data that is collected over 100 years, and She also wants to check the relationship among variables such as humidity, temperature, and rainfall in the given data.

So, the correct answer to this question is b. She is developing an association machine learning algorithm.

Because the association tells the relationship between variables. She used the association to find the relationship among variables such as humidity, temperature,  and rainfall.

While the other options are not correct because:

Regression is used to find out the cause and effect relationship between dependent and independent variables. Big data is the biggest field of data analysis, so this option does not best suit this context. Classification is used to classify data, or organizing data into their related group. While clustering is the task of dividing the population into a number of groups such that populations in the same groups are more similar to other populations in the same group than those in other groups. so these are all incorrect options to this question except the "b" option i.e association.

5 0
3 years ago
Other questions:
  • Based on the following pseudo-codes, if the value of num1 is 6 and the value of num2 is 8, then which of the following is the fi
    5·1 answer
  • Whatisthebestlocationapp for my androidphonebesidesgoogle maps?
    9·1 answer
  • The mathematical order of operations is used in Excel when formulas are evaluated. This order of operations states the order to
    14·2 answers
  • How many check boxes from the following code can be selected at any given time? Home Address Federal Express UPS
    13·1 answer
  • What is the primary benefit of using solid state storage
    7·1 answer
  • Look at the trend in the US labor force participation rate. If increasing the number of women and men in the labor force can be
    13·1 answer
  • What option from the format tab should you use to remove unwanted parts of a picture
    8·1 answer
  • What finger should be on the K key?<br> 1. Pinky<br> 2. Index <br> 3. Middle <br> 4. Ring
    9·1 answer
  • Am I going to ever go back to school?
    12·2 answers
  • Which tabs are expandable and collapsible
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!