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
Set-In-Order includes making changes to the layout of the area.A) TrueB) False
Bogdan [553]

Answer:

A) True

Explanation:

Set-In-Order is part of a 5S system approach of making a workplace to be well arranged so there will be smooth operation of employees and working conditions.

Set-In-Order specifically deals with entities in the workplace apparently labeled after being well arranged in their respective places.

Hence, it is TRUE that Set-In-Order includes making changes to the layout of the area.

7 0
3 years ago
Which of the following lines correctly defines a String variable
lidiya [134]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct answer to this question is C i.e. String s = "apluse";

The rule or syntax of declaring string in any programming language is given below:

String variable-name = "yourString";

For declaring string variable, first, you write "String" that is a keyword of a programming languages for declaring string variables, such as int before the variable name for declaring integer variable. Then, you need to write a meaningful name of the string as a variable. After string variable name, you need to put the equal operator and then write the string in double quotation("") marks and after that put the instruction terminator that is ";".

So, according to this syntax, option C is correct.

While other options are not correct because:

In option a, string is not encapsulated in double quotation. Option B does not have varaible type such as String and Option E does not have variable name and its value also. So, only option C is correct and all other except C are incorrect.

3 0
2 years ago
Explain the differences between CORBA and RMI.<br>​
Natali [406]

The RMI consists of three layers : Stub/Skeleton layer. Remote Reference layer. Transport layer.

...

Difference between RMI and CORBA :

RMI CORBA

RMI is a Java-specific technology. CORBA has implementation for many languages.

It uses Java interface for implementation. It uses Interface Definition

3 0
3 years ago
Which skill type refers to the ability to interact and communicate effectively with people?
sukhopar [10]
Softskills refer to the ability to interact and communicate effectively with people.
3 0
3 years ago
Pendant Publishing edits multi-volume manuscripts for many authors. For each volume, they want a label that contains the author’
tigry1 [53]

Answer:

The answer to this question can be described as follows:

Explanation:

The Pseudocode to this question can be described as follows:

start  \\ start process

Declaration of variable

Input_File records.txt

Output_File result.txt

string author_Name , title

int number_of_volume

open Input_File

open Output_File

input author_Name, title, number_of_volume from records.txt

while not eof \\ start loop and eof is end of file  

output author_Name

output title

output number_of_volume

end while  \\end loop

close records.txt  \\close file

close results.txt   \\close file

END \\end the code

8 0
3 years ago
Other questions:
  • write a program using if condition and print fail and try again if student marks are less than 33 using if condition and print f
    5·1 answer
  • Each time the user selects an item from a list box in a web page, a postback occurs, the web page will redisplay, and the page_l
    12·1 answer
  • Write a repetition statement that outputs the numbers 45 , 51 , . . . , 165 . That is, all of the multiples of 6 in increasing o
    7·1 answer
  • These are used to divide the document into sections. *
    5·1 answer
  • Finish the program by choosing the correct terms.
    7·2 answers
  • The first page of a website is what?​
    5·2 answers
  • Find the max and min of a set of values using recursion Find the max and min of a set of values using recursion. First input the
    5·1 answer
  • Which keyboard shortcut cuts information to the clipboard?
    14·1 answer
  • What Is The First Computer Brought In Nepal ? <br>​
    10·1 answer
  • When advertising on search engines, if you bid the same as your competitor, having a higher quality score will mean you appear w
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!