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
Blizzard [7]
3 years ago
10

Write a recursive function sumAll that accepts an integer argument and returns the sum of all the integers from 1 up to the numb

er passed as an argument. For example, if 50 is passed as an argument, the function will turn the sum of 1, 2, 3, 4, ..50.
Computers and Technology
1 answer:
slavikrds [6]3 years ago
8 0

Answer:

int sumAll(int n)//function definition.

{

   if(n==1)//if condition.

   return 1;

   else//else condition.

   {

       return n+sumAll(n-1);//return the value and call the function in recursive manner.

   }

}

Explanation:

  • The above-defined function is a recursive type function that is written in the c language, which holds the if and else condition.
  • When the user passes the largest value from 1, then the else condition will be executed which adds the largest value and pass the value after the decrement of the value as an argument.
  • When the value will become 1, then the function if-block will be executed which returns the value and ends the calling function recursively.
You might be interested in
Which soil horizon has the most organic material?<br><br> O<br> A<br> B<br> C
denis23 [38]
THE CORRECT ANSWER IS a
3 0
4 years ago
Read 2 more answers
A TextLineReader is an object that can read a text file one line at a time, parsing each line and turning it into an object of s
lesya692 [45]

no one is going to answer

4 0
3 years ago
Is the adoption rate of communication technology increasing ?
Neko [114]
More people adopt the technology during any period, leading to an increasing rate of adoption. So, yes
3 0
4 years ago
Read 2 more answers
DRU is a small brokerage house that enables its clients to buy and sell stocks over the Internet, as well as place traditional o
guapka [62]

Answer:

(A) A SMTP is a guideline that allows a client to send a message to the server in a network.

The web based mail is a kind of interface by which a correspondence occurs by applying the web explicit conventions or standards fro most of the time.

(B)The pros of an SMTP based two tie client server architecture are that, it has a free platform and a simple set up, also a detailed conversation between a client and a server.

The cons involve, having a blocked SMTP ports, and the slow execution of mass mail.

For the Web based the pros are, no blockages are found, email responses are very quick.

It's cons are, it has a complex kind of arrangement.

(C)What is recommended in this case for DRU is to use the SMTP based two tier client server architecture because, it is quicker, faster, secure and easy to fix.

Explanation:

Solution

(A) A Simple Mail Transfer Protocol (SMTP) is a standard in a which a customer sends messages over to the server in a network.

The sending of emails determines the manner of communication between the server and customer or client. this starts of with a TCP association with a particular port. the customer sends out different snippets of data, and then the server needs to have to look for the verification and email.

A web based email is a kind of interface where the correspondence occurs by making use of web -explicit conventions, for most of the time, the  HTTP will allow you to integrate capacities from assistance coming from outside into your application.

(B) (i) SMTP based two tier client server architecture:

The pros or advantages:

It is platform free and has a simple set up

A complete conversation or communication between the server and the client.

The cons or disadvantages:

A blocked SMTP ports

For a mass email it has a slow execution or implementation

(ii) For the web based the pros and cons is stated below:

The pros:

No blockage is found

Quick email response or transfer or movement.

Cons or disadvantages:

It has a complex or difficult arrangement

Complexity of any type increases or goes higher.

(C) What i will recommend for DRU will be the SMTP based two tier client server architecture due to the following reasons shown below:

It is quicker

It is faster

It is more secure/security

It does not require any high skill to use it;s service

It is easy to fix.

5 0
3 years ago
Alex, a webmaster, recently deployed a new web server. After checking external access to the new web server, he was unable to co
ICE Princess25 [194]

Answer:

<em>systemctl restart firewalld</em>

Explanation:

The command that will most likely resolve the communication issue being experienced by Alex ( i.e. his inability to communicate on port 80 ) is

<em>systemctl restart firewalld  </em>given that the host-based firewall's configuration has been changed

8 0
3 years ago
Other questions:
  • 1) which colour filter is used to pumps up black and white effects?
    13·1 answer
  • Pls help brainliest
    12·1 answer
  • Which statement accurately compares the restart at 1 and continue numbering featured of word
    15·2 answers
  • You can use the Trim Video feature to specify a video file’s Start and End time in order to control which portion of the video f
    5·1 answer
  • In a new blank word document you can typing where ?
    15·1 answer
  • Alexandria works for a non-profit company that asks for donations to help the homeless people in her community. Recently the dat
    12·1 answer
  • What do I do if my friend wants me to watch a video at my house?
    8·2 answers
  • Write a program that contains three methods:
    7·1 answer
  • How are hyperlinks created and used within a presentation? Check all that apply. Hyperlinks are set to open another source file.
    7·2 answers
  • Which of the following is an object-oriented programming language?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!