Question: Write a program that creates three vector objects. Fill the first two objects with 25 floating-point numbers using a for loop as follows: a.fill the
Write a program that creates three vector
a.fill the first vector object with the loop counter value;
b.fill the second vector object with the loop counter value squared;
c.finally, write a for loop that adds the corresponding elements in the first two vectors, and puts the result in the corresponding element of the third vector.
Display all three vectors using the format for counter; element + element = element.
(Finish the programme with the language of C++.)
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