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

What would be the result after the following code is executed? final int SIZE = 25; int[] array1 = new int[SIZE]; // Code that w

ill put values in array1 int value = array1[0]; for (int a = 0; a < array1.length; a++) { if array1[a] < value; { value = array1[a]; } }
Computers and Technology
1 answer:
Maurinko [17]3 years ago
8 0

Answer:

The "Value" variable contains the lowest value of array1 list.

Explanation:

  • When the user passes the value on the array, then the above code is used to find the minimum value from the list of value which is passed by the user.
  • The above array has the 25 sizes, so it will take only 25 value from the user, Then the loop will assume the first value as the minimum value and assign that value on the variable "value".
  • Then all the other elements accessed by the for loop and compare with the value of Value variable if the array value is minimum, then that value is assigned on the variable value.
  • Hence the minimum value of the list will be assigned on the variable value.
You might be interested in
A device that is connected to the Internet is known as<br> a. Nexus. Backbone. Node. Link.
ikadub [295]
A device connected to the internet is known as a Node.
3 0
3 years ago
Read 2 more answers
Meenakshi has created a presentation of six slides. The slides have the same background, but s wants to change the background of
sdas [7]
Ans:- Using Background Styles button present in Background group on the Design tab.
5 0
2 years ago
For the given program, how many print statements will execute? public static void printShippingCharge(double weight) { if((weigh
Step2247 [10]

CORRECT QUESTION:

For the given program, how many print statements will execute?

public static void printShippingCharge(double weight) { if((weight > 0.0) && (weight <= 10.0)){ System.out.println(weight * 0.75); }

else if((weight > 10.0) && (weight <= 15.0)) { System.out.println(weight * 0.85); }

else if((weight > 15.0) && (weight <= 20.0)) { System.out.println(weight * 0.95); } }

public static void main(String args[]) {

printShippingCharge(18);

printShippingCharge(6);

printShippingCharge(25); }

Answer:

Two of the print statements will output values

Explanation:

These two calls to the printShippingCharge are the ones that will output values: printShippingCharge(18); and printShippingCharge(6);

The first if statement is true when the value of weight is 6 (weight > 0.0) && (weight <= 10.0)

The Third if statement  is true when weight is 18 (weight > 15.0) && (weight <= 20.0)

NOTE: That I made correction to the variable weight. The question isn't consistent with the variable name. It used weight and itemWeight at different points this will lead to a compiller error

4 0
3 years ago
Which of the following is the correct procedure for adding a design theme to a PowerPoint presentation ?
Eva8 [605]

Answer:

B. Design > Theme > choose a theme

Explanation:

-Applying themes-

  • Select the Design tab on the Ribbon, then locate the Themes group. Each image represents a theme.
  • Click the More drop-down arrow to see all available themes.
  • Select the desired theme.
  • The theme will be applied to the entire presentation. To apply a different theme, simply select it from the Design tab.
6 0
2 years ago
Which of the following statements are true?
ipn [44]

Answer:

d. CSS can be included in an HTML document

Explanation:

HTML (Hypertext Markup Language) and CSS (Cascading Style Sheets) are not <em>programming languages</em>. They are, in fact, a different kind of <em>computer languages</em> and are some of the essential tools used in common web pages nowadays.

HTML and HTML5 are <em>different</em>. The latter is a new version of HTML which implies some improvements such as the availability of other technologies and features not found in HTML.

HTML is a <em>markup language</em>, i. e., a kind of computer language like <em>TeX</em>, <em>LaTeX</em>, <em>troff</em>, among others, that defines the <em>structure</em> of a text, and it tells to a computer how to show it in a web page using tags embedded into the content of the document. For example, a paragraph is defined using a tag like this <p> text inside </p>, a title: <title> text inside </title>, and so on with images, tables, et cetera.

CSS is a <em>style sheet language, </em>that is<em>,</em> another kind of <em>computer language</em> whose main emphasis is the <em>appearance</em> of the web page, telling the computer the <em>presentation </em>the <em>structured document</em> is about to have, that is, <em>how the document should look</em>.

As a result, CSS is used to describe the presentation of documents written in HTML and <em>can be included</em> in it.

On the other side, <em>programming languages</em> are <em>formal languages </em>(like the ones of mathematics and logic), that is, with some rules and a particular syntax intended to "communicate instructions to a machine, particularly a computer" [Wikipedia, 2019], and some examples of high-level programming languages are those like C, Python, Fortran, Lisp, CommonLisp, Pascal, JavaScript, among many others.

7 0
3 years ago
Other questions:
  • Approximately what percent of U.S. businesses have some form of remote work program? (from Chapter 1)
    14·1 answer
  • Why is knowledge of percent composition important in the mining process?
    7·1 answer
  • What must you do first in order to change the font type size and colour of a particular text
    13·2 answers
  • Can someone fix this so that it only says "its a payday" on 15 and 30 and on all other days "sorry, it's not payday"
    9·1 answer
  • Chandra, a student working on a group project, is trying to decide how to have the whole group suggest revisions for an essay. S
    10·1 answer
  • What is the network id with cidr notation for the ip address 172.16.32.108 with the subnet mask 255.255.255.0?
    10·1 answer
  • If not cleared out, log files can eventually consume a large amount of data, sometimes filling a drive to its capacity. If the l
    10·2 answers
  • After you have located a program name from the Start menu, in order to create a shortcut on the desktop.
    8·1 answer
  • Which three statements are true of lossless compression?
    6·1 answer
  • Which tool can you use to display hardware utilization statistics that tell you about the operation of your computer?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!