Answer:
#include <iostream>
# include <conio.h>
using namespace std;
main()
{
int size;
cout<<"enter the size of array";
cin>>size;
int a[size],b[size];
for (int i=0;i<size;i++)
{
cout<<"enter the value in array a"<<i;
cin>>a[i];
}
for (int k=0;k<=size;k++)
{
{
if (a[k]%2==0)
{
for (int l=k; l<=size;l++)
{
a[l]=a[l+1];
}
size=size-1;
}
}
}
cout<<"\nArray list without even";
for(int j=0;j<size+1;j++)
{
cout<<"\n"<<a[j];
}
getch();
}
Explanation:
There is an array taken of variable size, the program has been written to delete the even elements from the array list. In this program "size " is the integer variable that is taken to mention the total elements of the array. Then enter the values on different index of array.
After that program find the even values and then delete these values. After the operation new array will be displayed on output.
Answer:
The description for the given question is described in the explanation section below.
Explanation:
a...
interface Shape
{
public double getArea(); // creating a function
public double getPerimeter(); // creating a function
}
b and c...
- I preferred Interface although abstract classes are being used when children's classes associate certain aspect methods and variables and because all classes represent a certain method throughout the specific solution, not instance variables, it would be easier to construct an interface.
- Almost all of the period interfaces are favored because they have multiple inheritance capabilities.
Answer:
D
Explanation:
the first three you would need hands-on practice to learn.
Answer:
C stopping.
Explanation:
The situation varies, if there is a cross-walk and there is a pedestrian trying to cross you it is mandatory to stop. and allow the pedestrian the right of way. so if you're driving and suddenly stop to allow the pedestrian their right of way then all oncoming vehicles must stop to allow the pedestrian to cross the street.