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

Given that add, a function that expects two int parameters and returns their sum, and given that two variables, euro_sales and a

sia_sales, have already been defined: Write a statement that calls add to compute the sum of euro_sales and asia_sales and that associates this value with a variable named eurasia_sales.
Computers and Technology
1 answer:
Svet_ta [14]3 years ago
8 0

Answer:

The answer to this question can be given as:

Statement:

//declare method add with two-parameter.

public static int add(int euro_sales, int asia_sales)  

{

  return  euro_sales+asia_sales;

  //return value.

}

public static void main(String[] args)  

//declare main function

{

int eurasia_sales;

 //declare integer variable

eurasia_sales=add(4,7);

 //calling function by passing value in arguments.  

//variable hold return value.

System.out.print("Sum is:"+eurasia_sales);   //print value.

}

Explanation:

In the above statement, we declare the add() function that is already given in the question. In this function, we pass two integer variables euro_sales and asia_sales as a parameter. This function adds the parameter and returns value. Then we declare the main function. In this function, we declare an integer variable that is eurasia_sales that holds the return values of the add function. At the last, we print eurasia_sales variable value.

You might be interested in
One way to save time and get to the colleges that you are most interested in at a college fair is to
son4ous [18]

Answer:

Identify the location of the college stand in advance.

Explanation:

One way to save time and get to the colleges that you are most interested in at a college fair is to find out in advance the information about the fair, the colleges that are participating and from that pick the more interesting ones and identify the location of their stands. Like that when you arrive to the fair you can go directly to them and find them easily which will save you a lot of time as you won't be walking around the whole place to find them.

8 0
3 years ago
Read 2 more answers
What term is used to describe the average amount of time that will pass for a device before a failure is expected to occur?
sleet_krkn [62]
A mean is another word for average (kind of)
7 0
3 years ago
Find the number of ideal integers within the given segment [low,high] inclusive. An ideal number is a positive integer that has
Alex Ar [27]

Answer:

  1. low = 10
  2. high = 50
  3. count = 0
  4. for i in range(low, high + 1):
  5.    if(i % 3 == 0 and i % 5 == 0):
  6.        count += 1
  7. print(count)

Explanation:

The solution code is written in Python.

We can create low and high variables to store the lower bound and upper bound in the range (Line 1-2)

Next create a counter variable, count (Line 3).

Use a for loop to traverse through the number between lower bound and upper bound and check if the current number-i is divisible by 3 and by 5, increment the count by one.

After the loop, print the count and we can get the number of ideal integers within the range (Line 8).

6 0
4 years ago
Which domain of an IT infrastructure primarily includes the processes and procedures that end users use to remotely access an or
Natalka [10]

Answer:

The answer is "Remote Domain Access".

Explanation:

It is also known as web access, it is an opportunity to moderately access a desktop or network over a connection to the internet. It also allows you to download the structures, that want even if they are not mentally and emotionally able to communicate specifically.

  • In other words, it uses a satellite for interaction or internet service, and users can access systems remotely.
  • It is also used in the database, that's why it is the correct answer.
6 0
4 years ago
Draw internal architecture of computer​
ohaa [14]

Answer:

If this is good, let me know in the comments and I'll draw it

Explanation:

4 0
4 years ago
Other questions:
  • The World Wide Web consists of interconnected computer networks throughout the world that everyone can use. True or False
    13·2 answers
  • How does consumption of alcohol affect your driving skills? Name three ways that alcohol can affect your driving.
    15·2 answers
  • Systems such as smartphones, appliances, game controllers, cable set-top boxes and automobiles that contain small computers are
    5·1 answer
  • Describe at least two other companies that are direct or indirect competitors to your company. Explain how you will differentiat
    15·1 answer
  • 5 negative impacts of digital life Explain
    9·1 answer
  • The spreadsheet below shows a list of fruits with their calorie count, grams of sugar, dietary fiber, and protein. Which set of
    8·1 answer
  • All computer systems have
    14·2 answers
  • The number of __________ to your website that had not visited prior to the time frame being analyzed.
    9·1 answer
  • Ano ang humahati ng globo ng equdor
    8·1 answer
  • Identify the angle.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!