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]
3 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]3 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
According to Metcalfe's law, if a second computer is joined to a first, the value of the network created is how many times great
Nataly_w [17]

Answer:

Four times

Explanation:

Metcalfe's Law is a theory used in digital networks and telecommunications to symbolize the value of a network. According to the law a network's impact is the square of the number of nodes in that network at that given time. For instance, if a network has 10 nodes, its intrinsic value will be 100 (10 * 10).

The law also states that if a second computer is connected to a first, the value of the network created will be four times bigger than the value of the original computer.

7 0
3 years ago
Research and discuss the similarities and differences between cloud computing and client-server computing. Discuss the pros and
harkovskaia [24]

Answer:

Cloud computing as a virtual hosting tool, is much more theoretical. Both servers, applications, and communications are hosted in the cloud, off property, rather than being available via computer machine whereas In computing client/server, a controller gets client requests mainframes and needs to share its services, programs and/or data of one sometimes more client systems on the internet, and a client would be a portable platform that specific portions with a server and make use of a finite resource.

Explanation:

<u>Similar to cloud computing and client-server computing: - </u>

  • The cloud computing and client-server networking underpinning principles are the same. That is contact between client and server.
  • Throughout networking and client-server networking, user nodes can communicate (queries) with databases that live locally or are located in many other networks.

<u>Difference between computing and client-server computing: </u><u>- </u>

Resources: -

  • In computing client-server, the corporation or association controls the tools.
  • The services are offered in cloud computing by third parties or other businesses.

<u>The purpose of cloud computing and client-server computing is different:- </u>

  • Client-server computing is targeted at use. In computation, client-server clients request a product from the cloud. The operating system runs the test, then returns it.
  • Cloud computing is a sort of system in which the IT-related services are leased to the clients as a contract.

<u>Pros and cons of Cloud Computing:- </u>

The Pros:-

  • Lower costs for business:-The cloud is saving a lot of money for a medium-sized or small enterprise.
  • Better Reliability:- A dedicated group of experts performs all programming with such a cloud computing alternative.

The Cons:-

  • Limited Control:- When a firm stores cloud data, they have very limited control of it.
  • There have been security issues. The cloud isn't too attuned for every company to position some information on even a cloud.

<u>Pros and cons of client-server computing:- </u>

The Pros:-

  • Improved data sharing:- Data stored via the normal business method and processed on a server is available over an approved connection for the intended users.
  • Security:- Database has stronger access control and methods to ensure data could only be accessed or abused by approved clients.

The Cons:-

  • Overloaded Servers:- When multiple simultaneous requests from the client are made, the server is significantly overloaded, causing congestion in traffic.
  • Impact of centralized architecture:- Because it is centralized if a vital server fails to satisfy customer requests, the client-server then lacks good network robustness.

5 0
4 years ago
Online learning is impossible without?
Shtirlitz [24]
<span>Online learning is impossible without "basic computer literacy." Let us assume that everything is already provide, from computers to electricity. You can not move if at least a single idea about the usage of computer is not there, even the basics like turning on, turning off, browsing, etc.</span>
8 0
3 years ago
Which traits do human embryos have that link them to a common ancestor with fish and reptiles?
Alina [70]
The physiscal appereance of the human embryo is similar to the embryos of other animals, this helps prove the theory of evolution
8 0
3 years ago
Read 2 more answers
Which part of a window lets you see a fileâs contents without opening the file?
Artyom0805 [142]
The preview pane. On the right hand side of the file explorer.
3 0
3 years ago
Other questions:
  • The web server software used has a significant impact on how a web site's web pages look on a user's computer.
    7·1 answer
  • Injection attacks variants can occur whenever one program invokes the services of another program, service, or function and pass
    6·1 answer
  • Given a matrix input_matrix, return a Numpy array that consists of every entry of A that has: an even row index in the range [0,
    9·1 answer
  • what is musical technology specifically, the origins of its genesis &amp; its importance to the baroque era
    6·1 answer
  • How many total cells can a worksheet window contain? If columns are labelled alphabetically, what will be the label for the cell
    15·1 answer
  • Which is an appropriate strategy for using a workplace blog?
    9·1 answer
  • Is a device connected to a sound card in the system.
    5·1 answer
  • Def shared_motif(dna_list):
    13·1 answer
  • Read the following scenario. How might Sarah correct successfully complete her task?
    6·1 answer
  • 0.0% complete question a forensics analyst is attempting a live acquisition of the contents of the memory of a running linux dev
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!