subject

Write a program that asks the user to input a vector of integers of arbitrary length. the program then counts the number of elements, the number of posi- tive elements, and the number of negative elements divisible by 3. the pro- gram displays the vector that was entered and the results in sentence form, i. e. "the vector has xx elements. xx elements are positive and xx elements are negative divisible by 3", where xx stands for the corresponding number of elements. execute the program and when the program ask the user to input a vector type randi ([-20 20],1,16). this creates a 16-element vector with random integers between -20 and 20.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:00
Which statement is true of web-based social media? a.they allow consumers to interact with and update content. b.they cannot be updated easily, as compared to print media. c.they are expensive to produce and maintain, as compared to print and television. d.they can exist independent of the internet.
Answers: 1
question
Computers and Technology, 24.06.2019 20:00
Individuals suffering from technology overload feel distressed when deprived of computers and mobile devices.true/fasle
Answers: 2
question
Computers and Technology, 24.06.2019 22:10
In command prompt, whats a command that will list only .ini files in c: \windows\system32 directory?
Answers: 1
question
Computers and Technology, 25.06.2019 04:00
Plz there is a problem with my account. i no longer have ! ( hand,ambitious,virtuoso etc.) it's like getting brainliest means nothing. how do i get ranks back?
Answers: 1
You know the right answer?
Write a program that asks the user to input a vector of integers of arbitrary length. the program th...
Questions
question
Geography, 14.02.2021 22:50
question
History, 14.02.2021 22:50
question
English, 14.02.2021 22:50
question
Mathematics, 14.02.2021 22:50
question
Social Studies, 14.02.2021 22:50
question
Spanish, 14.02.2021 22:50
Questions on the website: 13722363