The dot product of two vectors A and B, each of size n, is
int product=0; for (int i=0; i<=n; i++)product+=A[i]*B[i] (Calculation 1)
In this assignment, you write C++ programs that compute the dotproduct of two given vectors. In these programs, in vectors A and Bonly nonzero elements are stored.
you implement a linked list version of theprogram. That is, instead of an array, you use linked lists tostore the non-zero elements of the vectors. This involves changingstruct definition to include a link, and writing a new dotproduct()function.
Good Luck
Expert Answer
An answer will be send to you shortly. . . . .