Usually you can just report the question as useless or just report in in general. But I myself have read some answers and they dont even pertain to the question, it confuses me alot
Answer:
Option B is the correct option.
Explanation:
The following answer is true because when the person completed our training of a decision tree and after the following presentation he getting not good working performance on both side i.e., test sets and during the training period. After the training there is no bug on the implementation of the presentation then, he has to increase the rate of the learning.
Answer:
#include <iostream>
using namespace std;
void swap(int *a,int *b){ //function to interchange values of 2 variables
int temp=*a;
*a=*b;
*b=temp;
}
void sort(int queue[],int n)
{
int i,j;
for(i=0;i<n;i++) //to implement bubble sort
{
for(j=0;j<n-i-1;j++)
{
if(queue[j]>queue[j+1])
swap(queue[j],queue[j+1]); //to swap values of these 2 variables
}
}
}
int main()
{
int queue[]={6,4,2,9,5,1};
int n=sizeof(queue)/4; //to find length of array
sort(queue,n);
for(int i=0;i<n;i++)
cout<<queue[i]<<" ";
return 0;
}
OUTPUT :
1 2 4 5 6 9
Explanation:
In the above code, Queue is implemented using an array and then passed to a function sort, so that the queue can be sorted in ascending order. In the sort function, in each pass 2 adjacent values are compared and if lower index value is greater than the higher one they are swapped using a swap function that is created to interchange the values of 2 variables.
Answer:
the first conputer brought in nepal was IBM 1401
Answer:
In Python:
def print_volume (r):
volume = 4/3 * 3.142*r**3
print(volume)
print_volume(7)
print_volume(14)
print_volume(22)
Explanation:
This defines the function and takes radius r as the parameter
def print_volume (r):
This calculates the volume
volume = 4/3 * 3.142*r**3
This prints the volume
print(volume)
The next three lines call the function with different values
<em>print_volume(7)</em>
<em>print_volume(14)</em>
<em>print_volume(22)</em>