Answer:
A program that implement a bubble sort:
#include<iostream.h>
#include<conio.h>
int main()
{
int ar[50],no,i,j,temp;
cout<<"Enter array size ";
cin>>no;
cout<<"Enter array elements ";
for(i=0;i<no;++i)
cin>>ar[i];
for(i=1;i<no;++i)
{
for(j=0;j<(no-i);++j)
if(ar[j]>ar[j+1])
{
temp=ar[j];
ar[j]=ar[j+1];
ar[j+1]=temp;
}
}
cout<<"Bubble Sort array";
for(i=0;i<no;++i)
cout<<" "<<ar[i];
return 0;
}
Answer:
A
Explanation:
A would be the best possible answer
Efficiency because if you don't have very good efficiency then somebody can't really read it so they won't know what it's saying.
Explanation:
Below is required code in java :-
public class Table{
private String color; //attribute to store the color of the table
public Table(){ //default constructor
this.color=""; //set a default blank color
}
public Table(String color){ //overloaded constructor
this.color=color; //set the color value equal to the parameter provided
}
public void setColor(String color){ //setter or mutator method
this.color=color; //set the color value equal to the parameter provided
}
}
Answer: False
Explanation: It is sent to committee then senate.