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
Lera25 [3.4K]
3 years ago
8

Add is a function that accepts two int parameters and returns their sum.

Computers and Technology
1 answer:
Rashid [163]3 years ago
5 0

Answer:

Solution code is written in Java.

  1.   public static void main(String[] args) {
  2.        int eurasiaSales = Add(10000, 20000);
  3.    }
  4.    public static int Add(int euroSales, int asiaSales){
  5.       return euroSales + asiaSales;
  6.    }

Explanation:

Firstly, create a function <em>Add() </em>that takes two int parameters, <em>euroSales</em> and <em>asiaSales</em>. This function return the sum of<em> euroSales</em> and <em>asiaSales</em> (Line 5-6).  

Next, we can simply call the function by passing two integers (place them in parenthesis). The returned value from the function will be assigned to variable <em>eurasiaSales</em>.

You might be interested in
Select the correct answer.
Juliette [100K]

Answer:

COMPRESS, THIS WILL MAKE IT INTO A ZIP

Explanation:

3 0
3 years ago
Free brainliest!?! &lt;3​
Sholpan [36]

Meee plzzzzz First!............

4 0
3 years ago
Read 2 more answers
Assume that we would like to expand the MIPS register file to 128 and keep the size of all other fields as in the original MPIS
garri49 [273]

Answer:

These changes has the ability to decrease the size of a program, it

can do so by going ahead to reduce the instances in which the register contents “spill” into other registers or memory, it also does so by allowing more complex operations to be implemented in one instruction as agianst requiring multiple instructions.

On the other hand they are likely able to increase the size of a program by requiring adding bits to the opcode and register fields, thereby increasing memory width

Explanation:

See answer

7 0
3 years ago
Read 2 more answers
The difference between natural and technological system
kari74 [83]
Natural systems are systems that came into being by natural processes. Like the rain cycle.

Technological systems are those to whom people intervened or designed. Like diverting water for a rider for land irrigation.
5 0
3 years ago
This is not a factor that you should use to determine the content of your presentation. Your audience your goals your purpose yo
aksik [14]

Your technology I believe

4 0
3 years ago
Read 2 more answers
Other questions:
  • If using the md5 hashing algorithm, what is the length to which each message is padded?
    11·1 answer
  • How do you change brightness on acer laptop?
    7·1 answer
  • You open a folder Properties box to encrypt the folder, click Advanced, and discover that Encrypt contents to secure data is dim
    10·1 answer
  • You can count on everything online to be 100% accurate. <br> A. FALSE <br> B. TRUE
    11·2 answers
  • Create a program that generates a report that displays a list of students, classes they are enrolled in and the professor who te
    11·1 answer
  • What will be the output of the following code? &lt;?php $foo = 'Bob'; $bar = $foo; $bar = "My name is $bar"; print $bar; print $
    8·2 answers
  • Users of Adobe Reader, created by Adobe Systems Incorporated, are prompted to provide feedback on their experiences with the sof
    7·1 answer
  • The Uniform Electronic Transmission Act (UETA) a. declares that e-signatures are invalid. b. has only been adopted in a handful
    8·1 answer
  • When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This adjustm
    13·1 answer
  • What will be displayed after this code segment is run?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!