Answer: 3
Explanation:
Because X = 18 and our condition given to the code if > and < which do not match with the input so it prints 3.
Answer:
processor speed is the answer but not sure
Answer:
Explanation:
#include<iostream>
#include<ctime>
#include<bits/stdc++.h>
using namespace std;
double calculate(double arr[], int l)
{
double avg=0.0;
int x;
for(x=0;x<l;x++)
{
avg+=arr[x];
}
avg/=l;
return avg;
}
int biggest(int arr[], int n)
{
int x,idx,big=-1;
for(x=0;x<n;x++)
{
if(arr[x]>big)
{
big=arr[x];
idx=x;
}
}
return idx;
}
int main()
{
vector<pair<int,double> >result;
cout<<"Enter 1 for iteration\nEnter 2 for exit\n";
int choice;
cin>>choice;
while(choice!=2)
{
int n,m;
cout<<"Enter N"<<endl;
cin>>n;
cout<<"Enter M"<<endl;
cin>>m;
int c=m;
double running_time[c];
while(c>0)
{
int arr[n];
int x;
for(x=0;x<n;x++)
{
arr[x] = rand();
}
clock_t start = clock();
int pos = biggest(arr,n);
clock_t t_end = clock();
c--;
running_time[c] = 1000.0*(t_end-start)/CLOCKS_PER_SEC;
}
double avg_running_time = calculate(running_time,m);
result.push_back(make_pair(n,avg_running_time));
cout<<"Enter 1 for iteration\nEnter 2 for exit\n";
cin>>choice;
}
for(int x=0;x<result.size();x++)
{
cout<<result[x].first<<" "<<result[x].second<<endl;
}
}
Answer:
1. High performance
The first and foremost characteristic of an expert system is to deliver high performance 24×7
2. Understandable
The expert system should be easy to comprehend for all the people using it.
3. Reliable
An expert system has to be reliable in the sense that it is error-free so that it is trustable.
4. Highly Responsive
An expert system has to be proactive and provide responses for each and every detail of the problem.
Explanation:
Description of each
and sorry if wrong, don't be mad
The format that you will use on your works cited page when the entry is longer than one line is to second and all subsequent lines need to be indented half an inch.
<h3>What kind of formatting is used on a works cited page?</h3>
In the formatting of the Works on Cited page, the layout is that "Title the page Works Cited, do put it on the center and in plain text (no italics, bold, or underline). etc.
Note that the format to use when your works cited page entry is more than one line is to second and all subsequent lines need to be indented half an inch.
Learn more about cited page from
brainly.com/question/1382377