#include<iostream>
#include<stdio.h>
#define MAX 10
using namespace std:
class array adt
{
public
int a,i,size,n,p,e,f,pos,b[20],x;
void create()
{
cout<<"Creating a list\n";
cout<<"enter the size of the array:";
cin>>size;
for (i=0;i<size:i++)
{
cin>>b[i]
}
}
void is full()
{
if (size==0)
{
cout<<"the array is empty:\n";
}
else
{
cout<<"the array is full:\n";
}
}
void isempty()
{
if (size==0)
{
cout<<"the array is empty\n";
}
else
{
cout<<"the array is full\n";
}
}
void insert()
{
cout<<:Enter the position of the array for the element to be inserted:";
cin>>pos;
if(pos>=size)
{
cout<<"invalid position\n";
}
else
{
for(i=MAX:i>=pos;i--)
{
b[i]=b[i-1];
}
cout<<"enter the element to be inserted;\n";
cin>>p;
b[pos]=p:size++;
}
cout<<"list after insertion\n";
for(i=0:i<size:i++)
{
cout<<b[i]<<"it";
}
}
void delete()
{
cout<<"\n enter the position of the array for the element to be deleted:";
cin>>pos;
if(Pos>=size)
{
cout<<"invalid position\n";
}
else
{
for(i=pos+1;i<size;i++)
{
b[i-1}=b[i];
}
size--;
}
cout<<"the list after deletion\n";
for(i=0:i<size:i++)
{
cout<<b[i]<<"it";
}
}
void find()
{
cout<<"\n enter the element to be searched:";
cin>>x;
for(i-0;i<size;i==)
{
cout<<"element is at position:"<<i<<"\n";
}
}
}
void find KTH()
{
cout<<"enter the position of to be searched:";
cin>>e;
cout<<"the element at the given position is:"<<b[e]<<"\n";
}
void print()
cout<<"the final array\n";
for(i=0;i<size;i++)
}
}
};
int main()
{
array adt obj;
obj.create();
obj.isfull();
obj.isempty(;
obj.delete();
obj.find();
obj.findKTH();
obj.print();