The deadline of submission is February 15th Acceptable file
Solution
#include <stdio.h>
 #include <math.h>
 void vector_input(float v[],int n);
 void vector_output(float v[],int n);
 void vector_add(float v1[],float v2[],float v[3], int n);
 void vector_multiply(float v[],int n,float x);
 void inner_priduct(float v[],float v2[],int n);
 int main()
 {
 float v[25];
 float v2[25];
 float v3[25];
 int i,N;
 float x;
 printf(\"Enter the size of array:-\ \");
 scanf(\"%d\", &N);
 vector_input(v,N);
 vector_output(v,N);
 vector_add(v,v2,v3,N);
 printf(\"Enter an element X to multiply vector V:-\ \");
 scanf(\"%f\",&x);
 vector_multiply(v,N,x);
 inner_priduct(v,v2,N);
 }
 void vector_input(float v[],int N){
 int i;
 printf(\"Enter array elements of array \\\"V1\\\":-\ \");
 for(i=0;i<N;i++){
 scanf(\"%f\", &v[i]);
 }
 }
 void vector_output(float v[],int N){
 int i;
 printf(\"Entered elements of array \\\"V1\\\" are:-\ \");
 for(i=0;i<N;i++){
 printf(\"%f\ \", v[i]);
   
 }
 }
 void vector_add(float v1[],float v2[],float v3[],int N){
 int i;
 printf(\"Enter array elements of array \\\"V2\\\" to add in \\\"V1\\\":-\ \");
 for(i=0;i<N;i++){
 scanf(\"%f\", &v2[i]);
 }
 for(i=0;i<N;i++){
 v3[i]=v1[i]+v2[i];
 }
 printf(\"sum of v1 and v2 are:-\ \");
 for(i=0;i<N;i++){
 printf(\"%f\ \", v3[i]);
 }
 }
 void vector_multiply(float v[],int N,float x){
 int i;
 printf(\"Vector V after multiplying each element by X:-\ \");
 for(i=0;i<N;i++){
 float multiply=v[i]*x;
 printf(\"%f\ \",multiply);
 }
 }
 void inner_priduct(float v[],float v2[],int N){
 int i;
 float sum=0;
 for(i=0;i<N;i++){
 float multiply=v[i]*v2[i];
 sum+=multiply;
 }
 printf(\"Inner product is:- %f\ \",sum);
 }


