Question: This is C++ problem Please write codes clear for the problem below. Do not use C language. Problem 1. Write a program using pointers and

This is C++ problem

Please write codes clear for the problem below.

Do not use C language.

Problem 1.

Write a program using pointers and functions to implement multiplication of two vectors A and B as shown below: =

Where,

1xm

mx1

The program should satisfy the following requirements:

  1. The program should be capable of performing multiplication of two vectors of max size 10. The user should specify the length of the vectors (one length for both vectors).
  2. The vector A should be considered as a row vector (1 x m) whereas vector B should be considered as a column vector (m x 1) and the product c should be a scalar.
  3. Individual functions should be implemented to perform data input, data display and the multiplication. Data display should display the vectors appropriately as a row or column.
  4. The program should use pointers to access the individual elements of the vector in each function.
  5. The program should only implement the following operations in the main() function
  6. Definition of the variables and user input of desired size with appropriate checks
  7. Calling of functions
  8. Displaying the product.
  9. The program should use procedural programming only, not object-oriented programming.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!