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
In order for a fault-block mountain to form, a ______ must take place along a fault line and one side must be ________.
Sav [38]
I think the correct answer from the choices listed above is the first option. In order for a fault-block mountain to form, a shift must take place along a fault line and one side must be elevated. Fault-block mountains form<span> when Earth's crust pushes material up and down near a </span>fault line<span>. Hope this answers the question.</span>
7 0
3 years ago
How are devices connected to each other via Bluetooth? Choose two answers.
Olegator [25]

Answer:

Pairing and Passkey or PIN

Explanation:

8 0
3 years ago
Piers wants to take a course on XML. He is a certified web designer,but he has not used XML before. How can he use XML to improv
Agata [3.3K]

Answer:

It will bring more verstality in his website. He will be able to define tags.

Explanation:

XML allows to define your own tags. You can bring semantics into your website which make data browsing easier.

3 0
3 years ago
Select the correct answer.<br><br> Which statement is true with respect to Java?
NARA [144]

Answer:

where are the options ..... to select

7 0
2 years ago
Which of these graphic elements combine text, illustrations, and color?
Likurg_2 [28]

Answer:

Send the picture.

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • What technique is used to separate the different cell parts?
    15·1 answer
  • An organization uses SAP financial management software to store accounting details and Microsoft CRM software to record customer
    12·1 answer
  • Commands are organized into tabs on the
    8·2 answers
  • What does my name look like in binary code, btw my mane is Wendy Alexis Morales
    10·2 answers
  • Which of the following works on the pay-per-click (PPC) and cost-per-click (CPC) concept? ~ Plato
    9·1 answer
  • Which of the following information should be included in audit documentation? a. Procedures performed. b. Audit evidence examine
    13·1 answer
  • I need help with yes lol please and thank you
    15·2 answers
  • Alexa it is olewi.............................................
    15·2 answers
  • Read the ages of three people and find the average. Display the result.
    10·1 answer
  • In this exercise, you'll raise a manual exception when a condition is not met in a particular function. In particular, we'll be
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!