Answer:
a. application software
b. 128 megabytes
c. trade and commerce
d. third generation
e. Nws super computers
Explanation:
I have just write answer hope it will help u
thank you
Your IP address, also known as Internet Protocol
Periodically adding, changing and deleting file records is called file updating. The correct answer is A.
Answer:
Explanation:
Here is the code
#include<iostream>
using namespace std;
template <class myType>
int generic(myType *a, myType b)
{
int i;
for(i=0;a[i]!=-1;i++)
{
if( b == a[i])
return i;
}
return -1;
}
int main()
{
int a[]={1,2,3,4,5,6,7,8,-1};
float b[]={1.1,2.1,3.1,4.1 ,5.1,6.1,7.1,-1};
if(generic(a,5)>0)
{
cout<<" 5 is foundin int at index "<<generic(a,5)<<endl;
}
else
{
cout<<" 5 notfound "<<endl;
}
if(generic(b,(float)5.1)>0)
{
cout<<" 5.1 isfound in float at index "<<generic(a,5)<<endl;
}
else
{
cout<<" 5.1 notfound "<<endl;
}
system("pause");
}
/*
sample output
5 is found in int at index 4
5.1 is found in float at index 4
*/
Answer:
The program to this question as follows:
Program:
//header file iostream
#include<iostream> //including file for use basic function
//using name space
using namespace std;
//main method
int main() //defining main method
{
int a[3][3]; //defining two dimension array
int x,y,sum=0; //defining variables
cout<<"Enter array elements: "<<endl; //message
for(x=0;x<3;x++) // for row
{
for(y=0;y<3;y++) //for column
{
cin>>a[x][y]; //input values from user.
}
}
//loop for calculting sum.
for(x=0;x<3;x++)
{
for(y=0;y<3;y++)
{
sum=sum+a[x][y];//add all elements
}
}
cout<<"Sum: "<<sum; //print sum.
return 0;
}
Output:
Enter array elements:
1
2
3
4
5
6
7
8
9
Sum: 45
Explanation:
In the above C++ programming language code first, a header file is included then the main method is declared, inside a main method 2D array that is "a[][]", and an integer variable is defined that are "i, j, and sum". In the next line for loop is used, this loop is used two times that can be described as follows:
- The first time it is used for inserting elements from user ends.
- The second time, it uses the sum variable to add all array elements. and in the last print function that is "cout" is used for print sum variable value.