integers are read from input and stored into a vector until -1 is read. output the negative elements in the vector in reverse order. end each number with a newline. ex: if the input is 10 -12 -3 3 -1, the output is: -3 -12 note: negative numbers are less than 0.

Answers

Answer 1

Using knowledge in computational language in C++ it is possible to write a code that integers are read from input and stored into a vector until -1 is read output the negative elements in the vector in reverse order.

Writting the code:

#include <iostream>

#include<vector>

using namespace std;

int main()

{

   int i;

   vector<int> integerVector;

   int value;

   

   cin>>value;

   while(value!=-1)

   {

       integerVector.push_back(value);

       cin>>value;

   }

   for (int i = integerVector.size(); i >=0; i--)

   {

       if(integerVector[i]<0)

             cout<<integerVector[i]<<endl;

   }

   return 0;

}

See more about C++ at brainly.com/question/19705654

#SPJ1

Integers Are Read From Input And Stored Into A Vector Until -1 Is Read. Output The Negative Elements

Related Questions

what is the name of a protocol that lets users share files over a network? 1 point apache dns cups nfs 2. question 2 which two of these methods could you use to set up printing in an organization?

Answers

A server-client protocol called Network File System (NFS) is used to share files across computers connected to the same network.

Transmission Control Protocol/Internet Protocol (TCP/IP) connections can be used to send files between computers using the FTP (File Transfer Protocol) network protocol. Network protocols can be divided into three categories. These include protocols for network management, network communication, and network security: Basic data communication technologies like TCP/IP and HTTP are examples of communication protocols. On a computer network, the File Move Protocol (FTP) is a common communication protocol used to transfer data from a server to a client. An application-layer protocol called Hypertext Transfer Protocol (HTTP) is used to send hypermedia documents like HTML.

Learn more about Protocol here-

https://brainly.com/question/28446917

#SPJ4

a technician is installing a soho router at an after-school community center. the customer would like to keep children from accessing inappropriate content while browsing the web.

Answers

Small office/home office (SOHO) routers are basic network devices for millions of consumers. These are often the single ingress and egress point of the SOHO network, managing domain name resolution, firewall protection, dynamic addressing, wireless connectivity, and of course routing.

It consists of multiple LANs with backbone infrastructure connections. This is a large network, such as those used by businesses and schools, with hundreds or thousands of hosts interconnected. It is a collection of interconnected private and public networks. Each layer of the OSI model depends on the layer below it to function. If the lower level has a problem, the higher level cannot function or communicate. For example, HTTP is a common Layer 7 (application layer) protocol. Encryption is the ability of a device to convert information into encrypted text to prevent unauthorized access. Essentially, when your device is locked, your data is encrypted so only users with the proper access can access it.

Learn more about Encrypted here-

https://brainly.com/question/14635177

#SPJ4

The main reason many users have access to outlook their email communications and their?

Answers

Answer:

Question: The basic PowerPoint template has a simple presentation format with two text boxes, title and ____

Answer: slide show

Explanation: this is the most logical answers because after all those steps in the presentation this is the next one

Question: The main reason many users have access to Outlook is to manage their e-mail communications and their

Answer: calendering

Explantion: this is used for messsaging and contacts and you also use it for to put important stuff on your calender

Pls Mask As Brainliest

While Outlook is a dependable and potent email management system as well, many people have access to it for their electronic communications along with associated functions.

What is the outlook?

Anyone can compose and send emails, manage your calendar, save the names and contact information of the people you know, and keep on top of your projects using Outlook. Even if you utilise Outlook on a daily basis, you could still be aware of the many wonderful things it can do to boost your productivity.

Users may put all of their correspondence, contacts, assignments, and schedule contents in one spot and manage them from there. Additionally, Outlook offers users a wide range of useful features like message rules, signals, and sophisticated search options. It is a popular option for business customers because it is also extremely secure.

Learn more about outlook, here:

https://brainly.com/question/12471852

#SPJ2

carter is the web designer for an open source project. he has created a program that facilitates the easy collection of data for a large-scale logistics firm. the source code for carter's program is .

Answers

The source code for carter's program It is available to the public.

What is source code?
Any collection of code written in a sentient programming language, typically as plain text, either with or without comments, is referred to in computing as source code, and simply code. The source code of a software is specifically created to make the job of computer programmers easier. These programmers typically outline the tasks that a computer is to carry out by writing source code. An assembler or compiler frequently converts the source code into basic machine code so that it may be run by the computer. The machine code then is accessible for later execution. The majority of application software is supplied as executable-only files. A user, programmer, or system administrator might benefit from having access to the source code if they wanted to research or alter the software.

To learn more about source code
https://brainly.com/question/4593389
#SPJ4

Other Questions
Which category of transition words demonstrates when or where something occurred?(20 points giveaway)time/locationsequencingcause/effectemphasis (calc exponential growth and decay calculus!) a principal amount of $5000 is deposited into an account paying interest at a rate of 6 percent continuously compounded. what will the account balance be after 3 years What determines whether your debt is positive or negative?a flip of a coina determination by your bankerthe age of the debtthe amount of your gross income dedicated to paying it down 5. Find the area of the triangle.11 ft5 ft14 ft13 ft Based off of the diagram below, correctly categorize each of the angle pairs. Some angle pairs go to more than one category. There are a few incorrect angle pairs as well. The incorrect pairs DO NOT get categorized.For context, line CD intersects line AB at point E.Line EG is perpendicular to line AB at point E. Hello! So I need some help with this question. I dont quite understand it and I did have another tutor figure it out and the answer was wrong. Its not his answer of 58.04. Can you help me? 7. Which country is not part of COMESA(1 Point)OA EgyptB TanzaniaOC EthiopiaOn Rwanda all the population that live together in the same place is the collection of unearned cultural, political, economic, and social advantages and privileges possessed by people of anglo-european descent or those who pass as such. 10 Millie and her grmade this plan for a garden.They will plant flowers in8 square feet of the garden.They will plant vegetables inthe rest of the garden.10 feet2 feetFOR129FOR FOR20 CAP4 feet7 feet9 feet6 feetPart AWhich of these can be usedto model the area of thevegetable garden?A2 x 10B6X76x9D 10 x 7Part BWhat is the total area of thegarden in square feet? Horizontally translated 4 units left, vertically translated 2units down, and shrunk vertically by one half. I need help understanding this poem :) xplain how each of the other fields of social science are important to historians. Remember they are economics, geography, archaeology and political science. Question is in the image(IT HAS TWO ANSWERS) Please help!!!Ill give you the Brainiest Using four vocabulary words, write a paragraphdescribing how one of the older boys might havereacted to Jerry's swim. Here is a sample opening. 17. Critique Reasoning Lisa used a number line to model 2(3). Does her number line make sense? Explain why or why not. 8-7-6-5-4-3-2-1 0 Early Republic hast where History still live achieve 300 Rebuttal for revenge of the geeks essay If you lived during reconstruction name 3 things you would do Dilate the following points by each scale factor (k) provided. P(3, 4) by k=1/2 And N(4, 15) by k=2