Computers and Technology

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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 12:30, mathhelper22
Can someone with my technology homework? ? i’m not very good with rulers. i need it asap though
Answers: 1
image
Computers and Technology, 22.06.2019 10:30, robert7248
You have a large, late-model pick-up truck with a rear seat. the pick-up truck weighs 6,500 pounds. the florida seat belt law
Answers: 1
image
Computers and Technology, 23.06.2019 07:30, emilyplays474
What key should you press and hold to select and open multiple files at one time? enter alt control esc
Answers: 1
image
Computers and Technology, 23.06.2019 16:10, alexis9658
What is the ooh? a. omaha occupation handbook b. online occupational c. occupations online d. occupational outlook handbook select the best answer from the choices provided
Answers: 3
Do you know the correct answer?
Write a program that asks the user to input a vector of integers of arbitrary length. the program th...

Questions in other subjects:

Konu
Mathematics, 18.03.2021 18:50
Konu
Mathematics, 18.03.2021 18:50
Konu
Arts, 18.03.2021 18:50
Konu
Mathematics, 18.03.2021 18:50