The correct answer to the question 'Which of the following is NOT a good way to define AI' is (a) AI is all about machines replacing human intelligence.
The correct answer to the question ‘Which of the following is NOT a good way to define AI’ is (a) AI is all about machines replacing human intelligence.
Correct option to the question 'Which of the following function is used to find the first occurrence of a given string in another string' is (b) strstr().
Correct option to the question ‘Which of the following function is used to find the first occurrence of a given string in another string’ is (b) strstr().
#include <stdio.h> void table() { int j,i,pr; printf("Multiplication table of number starting from 1 to 10 : \n"); for(i=1;i<=10;i++) { for(j=1;j<=10;j++) { pr = i*j; printf("%d x %d = %d\t", i, j, pr); printf("\n"); } printf("\n"); } } void main() { table(); }
#include <stdio.h>void table(){int j,i,pr;printf("Multiplication table of number starting from 1 to 10 : \n");for(i=1;i<=10;i++){for(j=1;j<=10;j++){pr = i*j;printf("%d x %d = %d\t", i, j, pr);printf("\n");}printf("\n");}}void main(){table();}
#include <iostream> #include <cmath> using namespace std; int main() { double premix_concrete, thickness, length_ratio, width_ratio; //Inputs cout<<"Enter the amount of premixed concrete (in cubic yards) ordered : "; cin>>premix_concrete; cout<<"Enter the thickness of tRead more
#include <iostream>#include <cmath>using namespace std;int main() {double premix_concrete, thickness, length_ratio, width_ratio;//Inputscout<<"Enter the amount of premixed concrete (in cubic yards) ordered : ";cin>>premix_concrete;cout<<"Enter the thickness of the patio (in inches) : ";cin>>thickness;cout<<"Enter the ratio of length and width : ";cin>>length_ratio>>width_ratio;// Get amount of the premix_concrete in (cubic feet)double premix_feet = 27*premix_concrete;// Get the thickness in (feet)double thickness_feet = thickness/12;// Get the common factor of the ratiodouble x = sqrt(premix_feet/(length_ratio*width_ratio*thickness_feet));// Outputscout<<"Length : "<<x*length_ratio<<" feet Width : "<<x*width_ratio<<" feet"<<endl;return 0;}
Which of the following is an attribute of Strong or Generalized AI?
The correct answer to the question 'Which of the following is an attribute of Strong or Generalized AI' is (c) Perform independent tasks.
The correct answer to the question ‘Which of the following is an attribute of Strong or Generalized AI’ is (c) Perform independent tasks.
See lessWhich of the following is NOT a good way to define AI?
The correct answer to the question 'Which of the following is NOT a good way to define AI' is (a) AI is all about machines replacing human intelligence.
The correct answer to the question ‘Which of the following is NOT a good way to define AI’ is (a) AI is all about machines replacing human intelligence.
See lessWhich of the following function is used to find the first occurrence of a given string in another string?
Correct option to the question 'Which of the following function is used to find the first occurrence of a given string in another string' is (b) strstr().
Correct option to the question ‘Which of the following function is used to find the first occurrence of a given string in another string’ is (b) strstr().
See lessWrite a C program to print a multiplication table of the numbers from 1 to 10 using function.
#include <stdio.h> void table() { int j,i,pr; printf("Multiplication table of number starting from 1 to 10 : \n"); for(i=1;i<=10;i++) { for(j=1;j<=10;j++) { pr = i*j; printf("%d x %d = %d\t", i, j, pr); printf("\n"); } printf("\n"); } } void main() { table(); }
Write a function to print a table of the numbers from 1 to 10, their squares, and their cubes.
#include <stdio.h>void table(){int x;printf("\nNumber\tSquare\tCube\n");printf("=========================\n");for(x=1; x<=10; x++)printf("%d\t%d\t%d\n", x, x*x, x*x*x); }void main(){table();}
A contractor orders, say, 30 cubic yards of premixed concrete …
#include <iostream> #include <cmath> using namespace std; int main() { double premix_concrete, thickness, length_ratio, width_ratio; //Inputs cout<<"Enter the amount of premixed concrete (in cubic yards) ordered : "; cin>>premix_concrete; cout<<"Enter the thickness of tRead more