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
marta [7]
4 years ago
11

add is a method that accepts two int arguments and returns their sum. Two int variables, euroSales and asiaSales, have already b

een declared and initialized. Another int variable, eurasiaSales, has already been declared. Write a statement that calls add to compute the sum of euroSales and asiaSales and that stores this value in eurasiaSales. Assume that add is defined in the same class that calls it.
Computers and Technology
1 answer:
Oduvanchick [21]4 years ago
8 0

Answer:

// here is code in Java.

// package

import java.util.*;

// class definition

class Main

{

   // method that return sum of two sale value

   public static int Add(int euroSales,int asiaSales)

   {

       // return the sum

       return euroSales+asiaSales;

   }

   //main method of the class

public static void main (String[] args) throws java.lang.Exception

{

   try{

    // variables

       int euroSales=100;

       int asiaSales=150;

       int eurasiaSales;

        // call the function

       eurasiaSales=Add(euroSales,asiaSales);

        // print the sum

       System.out.println("total sale is:"+eurasiaSales);

   }catch(Exception ex){

       return;}

}

}

Explanation:

Declare and initialize two variables "euroSales=100" and "asiaSales=150". Declare another variable eurasiaSales. Call the method Add() with euroSales and asiaSales as parameter. This method will add both the value and return the sum.This sum will be assigned to variable eurasiaSales.Then print the sum.

Output:

total sale is:250  

You might be interested in
A(n) _______ is text or a graphic you can click to jump to another file or to somewhere else in the same file. quizle
Paul [167]
Hyperlink



______________________________
5 0
3 years ago
Question 1 Which portion of the PuTTY package allows you to perform file transfers using the SCP (Secure Copy) protocol?
Artyom0805 [142]

There are different aspect of computing. The portion of the PuTTY package that allows you to perform file transfers using the SCP (Secure Copy) protocol is pscp.exe.

The pscp.exe tool commonly called the PuTTY Secure Copy Client is known to be the only portion of the Putty package that can let you copy files to and from remote computers through the use of the SCP.

Secure Copy (SCP)  is simply defined as a computer command that one can use in Linux to copy files from one computer to another on a network.  PuTTY is simply known to be a free implementation of SSH (and telnet) used for computer that running Microsoft Windows.

Learn more about the PuTTY package from

brainly.com/question/13171394

8 0
3 years ago
In DTP, a good rule of thumb is to use as many special effects as you need to make your documents look interesting.
Margarita [4]
It all depends back on who youre present it t

younger ages (Primary-Middle),
Its Ok to use plenty of special effects, but dont ovedue your DTP with effects, so that they still can get the point.

Older ages (High & above)
Older people usually more serious than older ages to pursue their careers, so less effect, more points


5 0
3 years ago
The scope of a variable is __________________
Goryan [66]

Answer:

The scope of a variable is where it can be read or modified.

6 0
2 years ago
Which tools would you use to make header 1 look like header 2.
Kamila [148]

The tools that would be used to make header 1 appear and look like header 2 is the alignment tool icon and the Bold tool icon.

To understand this question, we must understand the interface of the Microsoft Excel.

<h3>What is Microsoft Excel?</h3>

Microsoft Excel is a spreadsheet that can be used for a variety of features such as:

  • Computation of Data sets and variables
  • Calculation of Business Data
  • Arrangement and Analysis of Data into Tables etc.

As a Microsoft software, Microsoft Excel can also be used to edit sheets. In the image attached, the required tool icons needed to change the header 1 into header 2 is the alignment tool icon and the Bold tool icon.

The two tools can be seen in the image as the two lower left icons.

Learn more about Microsoft Excel here:

brainly.com/question/25863198

6 0
2 years ago
Other questions:
  • ________ viruses are often transmitted by a flash drive left in a usb port.
    8·1 answer
  • Which group on the Home Ribbon contains the line spacing attribute?
    9·2 answers
  • What federation system technology uses federation standards to provide SSO and exchanging attributes?
    7·1 answer
  • When shopping on the web, it is better to pay for your purchase with a debit card rather than a credit card.
    10·2 answers
  • Select the correct answer.
    13·2 answers
  • Create a Python dictionary that returns a list of values for each key. The key can be whatever type you want.
    9·1 answer
  • Plz help
    8·1 answer
  • Differentiate between email and NIPOST System
    12·1 answer
  • The ______________<br> holds data only while the computer is on.
    7·1 answer
  • What is the most appropriate data type for each of these items?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!