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
trasher [3.6K]
4 years ago
7

Write the definition of a function half , which receives an integer parameter and returns an integer that is half the value of t

he parameter. (Use integer division!) So if the parameter's value is 7, the function returns the value 3. If the parameter's value happens to be 44, the functions returns the value 22.
Computers and Technology
1 answer:
timama [110]4 years ago
7 0

Answer:

The answer to this question can be given as:

Function definition:

int half(int value)

  //function name half with an integer parameter

{

return value/2;    //return integer division.

}

Explanation:

In the above function definition, we define a function that is half. This function returns a value that is an integer. In this function, we pass an integer variable that is value. In this function, we return the value of the parameter in the integer division. for example, if the user passes the value 7 in the function parameter so the function will return 3 because we will return an integer value, not floating-point value.

You might be interested in
What are HITs????????
nasty-shy [4]

It is namely an internet made by someone...

8 0
4 years ago
A lost update occurs when
shutvik [7]

Answer:

Option A is the correct answer.

Explanation:

7 0
4 years ago
ANSWER QUICKLY!!
Alina [70]

Answer: I did some research I narrowed it down to page link and page break so I think it might be page link but look up page break and you will see what I think it might be that ok hope this helps.

8 0
2 years ago
This schematic of a new invention was submitted to the US
DanielleElmas [232]

Answer:

I don’t the answer

Explanation:

I don’t like the government

5 0
3 years ago
When you _____ a scroll bar, a shortcut menu appears with commands related to the scroll bar
stich3 [128]
I think d is the right answer
8 0
3 years ago
Other questions:
  • The dashed lines that display on your slide when you are moving an object are
    10·1 answer
  • A sine wave is offset 1/9 cycle with respect to time 0. What is its phase in degrees and radians? Which simple signal has a wide
    12·1 answer
  • The game begins with the player having 20 POINTS
    11·1 answer
  • To recover from driving off the road steer back onto the road in then ?
    14·2 answers
  • In ________ for final fields and methods the value is assignedlater but in ______ you assign the value during declaration.
    15·1 answer
  • When the writer of a letter sends a copy to a third party without the knowledge of the person receiving the original letter, it
    11·1 answer
  • Types of motherboard​
    11·1 answer
  • Write the code to produce a for loop that counts down from 20 to 0 by 2’s and prints the number each time it goes through the lo
    15·1 answer
  • WHAT IS THE LOCATION OF “A”. ON THE GRID?
    15·2 answers
  • How to transfer word 2019 from one computer to another
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!