0

```
#include <iostream>
using namespace std;
class vector1
{
float vector[];
int y;
public :
vector1(int x)
{
y=x;
cout<<"enter the elements of the array";
for(int i=0; i<=y; i++)
{
cin>>vector[y];
}
cout<<"elements of vectors are";
cout<<"{";
for(int i=0; i<y; i++)
{
cout<<"\n"<<vector[i];
}
cout<<"}";
}
void modify(int z)
{
int a;
for(int i=0; i<y; i++)
{
if(z == vector[i])
{
a = i;
cout<<"subscript for no u wann reaplace are"<<i;
return;
}
}
cout<<"enter the no u replace";
cin>> vector[a];
}
void multiplication(int p)
{
for(int i=0; i<y; i++)
{
vector[i] = p*vector[i];
}
cout<<"after multiplication vector is";
for(int i=0; i<y; i++)
{
cout<<"\n"<<vector[i];
}
}
void display();
};
void vector1 :: display()
{
cout<<"{";
for(int i=0; i<y; i++)
{
cout<<"\n"<<vector[i];
}
cout<<"}";
}
int main()
{
vector1 v1(5);
v1.display();
v1.multiplication(2);
v1.display();
}
```

I need to make a vector array...of floating type which have following methods

multiplication for scalar multiplication with elements;;

display..

input...