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
solong [7]
2 years ago
9

Write a function that receives an integer list from STL and returns the sum of even numbers in the list (return zero if no even

number is in the list)
Computers and Technology
1 answer:
Doss [256]2 years ago
8 0

Answer:

int sumeven(int lis[],int n)

{

   int sum_e=0;//integer variable to store the sum.

   for(int i=0;i<n;i++)

       {

           if(lis[i]%2 == 0)//if the number is even adding to sum_e.

           sum_e=sum_e+i;

       }

   return sum_e;//retuning the sum.

   

}

Explanation:

The above written function is in C++.This function find the sum of even numbers in the list provided.It loops over the array and if the number is even adds to the variable sum_e finally return sum_e which having the sum of even numbers now.

You might be interested in
You are planning a program to find the maximum heart rate recommended for patrons of a gym where you have a part-time job. One f
Korolek [52]

Answer:

Age = int(input(Enter your age? "))

print(f"Your maximum heart rate is {220 - age}.")

Explanation:

The programs will be as follows

Age = int(input(Enter your age? "))

print(f"Your maximum heart rate is {220 - age}.")

 

6 0
3 years ago
Muultimedia Promo try answer this question and explaining them or give examples of that topic Thanks
Marina CMI [18]
Okay, I'll try to help best I can. 

For the first question, it's basically asking what you did to ensure that you have appealed to your designated audience, or the demographic that you are trying to attract to your product/whatever you're advertising. It also asks about your purpose, and since I don't know your purpose for making your promo, you'll have to answer this yourself. 

For the second question, you'll have to add all of the media types that you used to create your promo. Did you write your promo down on paper, then take a picture of it? Did you use images, and if you did, were these images created by you using paper and pencil/a digital program or found on a website? What did you use to convey your message, television? Social media? A physical medium, like a billboard or flyer? Did you use video or sound recording in addition to any of the things I stated? 

For the third question, you'll have to inquire with your test buddy. 

For the final question, you'll have to describe what you did to the response your test buddy gave you. Did you change anything? Did you take any action outside of changing your work, preferably non-violent? (That was a joke, I think they're just asking what you did related to your promo). 

I hope this helped you out! Feel free to ask me any additional questions if you have any. :-)
4 0
3 years ago
What is a computer network?
Fiesta28 [93]

Answer:

A computer network is a set of computers connected together for the purpose of sharing resources. The most common resource shared today is connection to the Internet. Other shared resources can include a printer or a file server.

3 0
3 years ago
What is the internet?
Inessa [10]
 this is the definition:<span>a global computer network providing a variety of information and communication facilities, consisting of interconnected networks using standardized communication protocols.</span>
3 0
3 years ago
Read 2 more answers
Informs the network interface card to pass packets sent to that address to the ip stack so their contents can be read, and tells
Lesechka [4]
The answer to this question is Registration
Registration on the network interface will allow computer users all around the world to access a certain information stored within a certain address in that network which most people know as a website.
Today, to do a network registration, people just need to contact a hosting service that will take care of everything for us, and we just need to provide the content.


6 0
3 years ago
Other questions:
  • In three to five sentences, describe how you can organize written information logically and sequentially
    8·1 answer
  • Desktop, laptop, and tablet computers, and mobile devices are classified as _______.
    7·1 answer
  • What is the name for a partition that has been formatted and assigned a drive letter?
    8·1 answer
  • 10. Question
    15·1 answer
  • Which group on the Home Tab allows you to add shapes to a PowerPoint slide?
    9·2 answers
  • The Receiver recognizes the sounds the Sender is making and transforms them into words and ideas in his own mind. What is this
    5·1 answer
  • Customizing ads to people who had earlier visited the site is
    14·1 answer
  • A folder has been shared with other users and set to read-only. What does this mean for users?
    12·2 answers
  • 3. In 1989, the first handheld console was released by _____ and it was called ________.
    13·1 answer
  • Which of the following technologies is an example of social media
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!