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
EastWind [94]
3 years ago
7

Write a calling statement for the following code segment in Java: public static int sum(int num1, int num2, String name) { int r

esult = num1 + num2; System.out.println("Hi " + name + ", the two numbers you gave me are: " + num1 + " " + num2); return result; } Function Integer sum(Integer num1, Integer num2, String name) Integer result = num1 + num2 Display "Hi " + name + ", the two numbers you gave me are: ", num1, " ", num2 Return result End Function Write a calling statement to the function in Java or Pseudocode. You may use any value of appropriate data samples to demonstrate your understanding.
Computers and Technology
1 answer:
Pachacha [2.7K]3 years ago
3 0

Answer:

Following are the calling of the given question

public static void main(String[] args) // main function

{

int store; // variable declaration

store = sum(32,15,"san"); // Calling of sum()

System.out.println(" TheValue returned by sum() : "+store); // display

}

Explanation:

Following are the description of the above statement

  • Here is the name of function is sum() In the sum() function definition there are 3 parameter in there signature i.e  two "int" type and 1 is "string" type .
  • In the main function we declared the variable store i,e is used for storing the result of sum() it means it storing the result of value that is returning from the definition of sum() function .
  • After that calling the function by there name and passing three parameter under it  sum(32,15,"san"); and store in the "store" variable.
  • Finally print the value by using system.out.println ().
You might be interested in
Consider the following program segment. ifstream inFile; //Line 1 int x, y; //Line 2 ... //Line3 inFile >> x >> y; /
AnnyKZ [126]

Answer:

inFile.open("progdata.dat");

Explanation:

5 0
3 years ago
5. Why is adaptability important in the workplace?
vesna_86 [32]

Answer:

because u can adapt a job

Explanation: hmmhmhmmhmhmhmmhhm

THIS HELPS RIGHT??????

8 0
3 years ago
What is a general term for a type of database which is endlessly and easily scalable without a measurable performance decrease
Andrews [41]

Answer:

<u>Scalable database</u>

Explanation:

Good examples of a scalable database include; NoSQL database, MySQL, Microsoft SQL.

<em>Remember</em>, these databases are called scalable databases because they support memory expansion without a measurable performance decrease.

For example, if the management of a hotel notices that its 1 terabyte computer used to store its security videos is no longer adequate to meet the hotel's expansion, then decide to buy a newer server that can be integrated into the current system. We can say they just applied the concept of scalable databases.

4 0
3 years ago
6.Which of the following statements illustrates a characteristic of a person's attitudes
OleMash [197]
They act like a filter for info a person receives
8 0
3 years ago
Read 2 more answers
DOUBLE POINTS!! PLEASE HELP QUICKLY!!!!!
Dmitry [639]

Answer:

It rounds the edges of the text

4 0
3 years ago
Read 2 more answers
Other questions:
  • Which term is used to describe the science of examining raw data, removing excess noise from the dataset, and organizing the dat
    15·1 answer
  • What type of electronic monitoring involves an offender being contacted periodically by telephone or beeper to verify his or her
    5·1 answer
  • you are concerned with security at your company and want to implement a technology that requires no configuring on the users sid
    15·1 answer
  • The following is part of a log file taken from the machine on the network with the IP address of 192.168.1.106:__________.
    6·1 answer
  • Explain why a document created by word processing software is stored as a binary file.​
    14·1 answer
  • 1.) Florida has ____________ roads that are designated as part of the National Highway System.
    12·1 answer
  • What is the difference between KE an PE
    8·1 answer
  • Fill this blanks with the given words​
    6·1 answer
  • what is a program or collection of programs that enable a person to manipulate a visual images on a computer​
    14·1 answer
  • Pa sagot po TLE-10<br>need den po Ng solution thank you​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!