Question: Write a program that generates a vector with 2 0 random elements between - 1 0 and 1 0 and then finds: 1 . The
Write a program that generates a vector with random elements between and and then
finds:
The sum of the positive elements.
The sum of the negative elements
Prove that the sum of the all elements the sum of the positive elements sum of the
negative elements
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
