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
Which of these are steps in the testing cycle? Check all of the boxes that apply.
ollegr [7]

Answer:

A,C and D

Explanation: You're welcome

5 0
3 years ago
Read 2 more answers
How has social media and the workplace affected you?
MAVERICK [17]

Answer and Explanation:

Social Media keeps on developing, as do the discourses in regards to its application inside the domain of business and learning.

There are different translations of online life, regardless of whether it is explicit to systems administration and web 2.0 innovations or ranges the utilization of any current innovation that improves social connections.

Social media, in any case, has numerous advantages to business, particularly the obvious head-ways in joint effort and correspondence.

As the innovation of social media keeps on changing and develop in notoriety, organizations should think about techniques to use its utilization in the work environment.

5 0
4 years ago
Which of the following would NOT be considered a cause of technological progress?
lyudmila [28]
My best guess would be <span>C. patents. This is because a technological process works with marketing and research, unlike patents. </span><span />
5 0
3 years ago
A wireless mesh network with 17 computers would need _______________ connections.
malfutka [58]
Oneeee hundreeeed and thirdy six
4 0
4 years ago
Write a public interface named Test with the following behavior:
enyata [817]

Answer:

The code to this question can be given as:

Code:

public interface Test  //define interface  

{

   public abstract Duration getDuration(); //define method

getDuration.  

   public abstract Result check(int a);

//define method

check .

   public abstract double getScore();

//define method getScore.  

}

Explanation:

In the above code, we define an interface that is "Test" inside an interface, we define three methods that can be defined as:

  • First, we define a method that is "getDuration" that method returns  Duration as an object.
  • Second, we define a method that is "check" this method accepts an integer parameter that is a and return Result.
  • The third method is "getScore" this method will return a double value.
8 0
3 years ago
Other questions:
  • Identify the correct options to complete the following passage.
    6·1 answer
  • ____ takes the idea of breaking down a program into separate and reusable functions to the next level by focusing on the encapsu
    10·1 answer
  • A _______ is a piece of computer hardware used for the modulation and demodulation of data between digital and analog formats.
    10·1 answer
  • 7. Glaciers have two types of deposition. Define them below:
    6·1 answer
  • Syah work as senior designer in creative design company. he is an imaginative person and always updates himself with the latest
    15·1 answer
  • In real-world environments, risks and their direct consequences will most likely span across several domains. However, in the la
    12·1 answer
  • What is the difference between a technological problem and a technological opportunity? Explain with an example.
    7·2 answers
  • Justify the need for branching and jump codes in the instruction set using real world scenarios
    6·1 answer
  • Develop a multithreaded app that can find the integer in the range 1 to 10000 that has the largest number of divisors. It should
    10·1 answer
  • A/an _____________ is a stored program that executes at a specified time. Group of answer choices stored procedure view trigger
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!