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
Alik [6]
3 years ago
14

Write the definition of a function square, which receives an integer parameter and returns the square of the value of the parame

ter. So if the parameter's value is 7, the function returns the value 49. If the parameter's value happens to be 25, the functions returns the value 625. If the value of the parameter is 0, the function returns 0.
Computers and Technology
1 answer:
MatroZZZ [7]3 years ago
5 0

Answer:

public static int square(int num){

       return num*num;

   }

Explanation:

Using the Java Programming Language, we declare a function named square as stated in the question, the return type of the function is stated as integer. And the the parameter it receives is an integer number called num.

To get the square of the number we use the expression num*num, and return the the squared value. When the function is called, it will receive one argument (an integer value), it will calculate the square and return it.

You might be interested in
Which language should you use to add functionality to web pages?
Ede4ka [16]
The anwser is either javascript or HTML
3 0
3 years ago
Read 2 more answers
What is the primary purpose of EHRs?
Solnce55 [7]

Answer:

It is important to note that the primary purpose of EHRs is to support and improve individual patient care. As such the EHR is created and held according to professional and legal obligations of confidentiality

Explanation:

8 0
3 years ago
If you can tell me what the best part about black ops 2 is and get it right you can have the Brainliest
Maru [420]
The best part about Bo2 is the zombies, hands down. ^
4 0
4 years ago
Read 2 more answers
TV stations in the U.S. normally broadcast horizontally-polarized signals. Is this TV antenna mounted correctly, or should it be
Marrrta [24]

Answer:basic computer skills

Explanation:

How to passed my test

3 0
4 years ago
8. Which button would you use to quickly add addresses to a mail merge envelope?
zepelin [54]
D) Address Block i believe 
8 0
3 years ago
Other questions:
  • Name format Many documents use a specific format for a person's name. Write a program whose input is: firstName middleName lastN
    14·2 answers
  • 1. According to Rory's paycheck, he earned $800 last month, but before taxes and other deductions were
    12·1 answer
  • What is the area of a triangle whose base is 14 m and whose height is 22 m?
    7·1 answer
  • What is an advantage of using a meta-search engine?
    14·1 answer
  • The dfs replication engine uses a form of replication called
    6·1 answer
  • Discuss the challenges of not using the five elements of multimedia in a positive manner<br>​
    7·1 answer
  • Explain the working system of a computer with an example​
    15·1 answer
  • Computer memory uses different numbers of bytes to store different data types.
    7·1 answer
  • Is there an alternative website of https://phantomtutors.com/ to get guidance in online classes?
    15·1 answer
  • A(n) _____ is a computerized system by which subscribers are able to communicate to all other subscribers by sending a transmiss
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!