subject

Write a C++ program (rain function) which will allow a user to enter values for two arbitrary sized arrays v and w. then compute their dot product. The dot product calculation itself should be accomplished by a C++ function you write called dot, which will compute the dot product of two arrays of arbitrary size. Your main function should use the dot function as follows: cout << "The dot product is " << dot(v, w, n) << end1,
where n is the length of the arrays, read from the keyboard when the program runs. An example run of your program should look like:
Enter size of the arrays: 4
Enter the 4 elements of v: 1 2 3 4
Enter the 4 elements of w: -4 3 2 -1
The dot product is 4 Modify your code from
Write a C++ program (rain function) which will allow a user to enter values for two arbitrary sized arrays v and w. then compute their dot product. The dot product calculation itself should be accomplished by a C++ function you write called dot, which will compute the dot product of two arrays of arbitrary size. Your main function should use the dot function as follows:
cout << "The mean of v is " << stats(v, n, stdev);
cout << " and its standard deviation is " << stdev << end1;
cout << "The mean of v is " << stats(w, n, stdev);
cout << " and its standard deviation is " << stdev << end1;
A sample run of the program should look like
Enter size of the arrays: 4
Enter the 4 elements of v: 1 2 3 4
Enter the 4 elements of v: -4 3 2 -1
The mean of v is 2.5 and its standard deviation is 1.11803
The mean of v is 0 and its standard deviation is 2.73861

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:10
What role did women fill during world war ii?
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
How do i get rid of my member ship for
Answers: 2
question
Computers and Technology, 24.06.2019 08:00
How can smart devices benefit businesses, organizations, and social communities in the global marketplace?
Answers: 1
question
Computers and Technology, 24.06.2019 10:30
Which of the following types of software is most applicable to the promotion of new products through advertising? a.databases b. spreadsheets c. web design programs d. word processing tools
Answers: 2
You know the right answer?
Write a C++ program (rain function) which will allow a user to enter values for two arbitrary sized...
Questions
question
Mathematics, 03.06.2020 13:23
question
Mathematics, 03.06.2020 13:23
question
Mathematics, 03.06.2020 13:23
question
Mathematics, 03.06.2020 13:23
question
Mathematics, 03.06.2020 13:23
Questions on the website: 13722360