Answer:
Following is the program in C language :
#include <stdio.h> // header file
#define n 5 // macro
int main() main function
{
int a[n],k1; // variable and array declaration
printf("Enter the element:\n");
for(k1=0;k1<n;++k1) //iterating the loop
{
scanf("%d",&a[k1]);//Read the values by user
}
printf("Output in Reverse Order:\n");
for(k1=n-1;k1>=0;--k1)//iterating the loop
{
printf(" %d ",a[k1]); //Display the values
}
return 0;
}
Output:
Enter the element:
4
3
45
67
89
Output in Reverse Order: 89 67 45 3 4
Explanation:
Following is the description of the program
- Define a macro "n" with value 5 after the header file.
- Declared an array "a" and defined the size of that array by macro i.e "n".
- Read the value by the user by using scanf statement in the array "a"
- Finally In the last for loop display the values of array "a" by space.
Answer:
Program for measurement in meters and then converts it into miles, feet, and inches:
#include<iostream.h>
#include<conio.h>
void main()
{ float meter, mile, feet, inches;
cout<<"enter meters";
cin>>meters";
feet=meter×3.2808;
mile= meter×0.000621371;
inches= meter×39.3701;
cout<<"Value of"<<meter<<"meter"<<"in feet is"<<feet<<"feet":
cout<<"Value of"<<meter<<"meter"<<"in mile is"<<mile<<"mile";
cout<<"Value of"<<meter<<"meter"<<"in inches is"<<inches<<"inches";
getch();
}
Answer: Regularly purge all network printers' hard drive caches.
Explanation:
<u>Answer</u>: B. Identify the source of the active connection
<em>Any problem can be fixed only finding of the source of it. We can fix a problem in ‘n’ number of ways but it might again come back if source of it is not identified.</em>
<u>Explanation:</u>
Identify the source of the active connection is the NEXT step the team should take. It is very similar to our human body.
If the infection is coming in the body again and again and gets fixed in the treatment, the reason for come - back will be identified so that it does not <em>lead to unnecessary treatment. </em>
In a similar way, if source are identified then the problem of come-back can be avoided. <em>So option B would be the right choice.</em>