where it says " def main() " there needs to be something in the "()"
Hope this helps. : )
Answer:
#include<iostream>
#include<iomanip>
using namespacestd;
int main ()
{
int x1[3][3]={1,2,3,4,5,6,7,8,9};
int x2[3][3];
int i,j;
for(i=0;i<3;i++)
for(j=0;j<3;j++)
x2[i][j] = x1[i][j];
cout<<"copy from x1 to x2 , x2 is :";
for(i=0;i<3;i++)
for(j=0;j<3;j++)
cout<<x2[i][j]<<" ";
cout<<endl;
system("pause");
return 0;
}
/* Sample output
copy from x1 to x2 , x2 is :1 2 3 4 5 6 7 8 9
Press any key to continue . . .
*/
Explanation:
Explanation:
a table of the chemical elements arranged in order of atomic number, usually in rows, so that elements with similar atomic structure (and hence similar chemical properties) appear in vertical columns.
Answer:
Explanation:
The following code is written in Java and creates all of the methods that were requested in the question. There is no main method in any of these classes so they will have to be called from the main method and call one of the objects created method for the code to be tested. (I have tested it and it is working perfectly.)
class Point {
private int x, y;
public void Point(int x, int y) {
this.x = x;
this.y = y;
}
public double distance (Point other) {
double distance = Math.sqrt(Math.pow((other.x - this.x), 2) + Math.pow((other.y - this.y), 2));
return distance;
}
public int quadrant() {
if (this.x > 0 && this.y > 0) {
return 1;
} else if (this.x < 0 && this.y > 0) {
return 2;
} else if (this.x < 0 && this.y < 0) {
return 3;
} else if (this.x > 0 && this.y < 0) {
return 4;
} else {
return 0;
}
}
}
class Name {
String firstName, lastName;
char middleInitial;
public String getNormalOrder() {
String fullName = firstName + " " + middleInitial + " " + lastName;
return fullName;
}
public String getReverseOrder() {
String fullName = lastName + ", " + firstName + " " + middleInitial;
return fullName;
}
}
Answer:
Yes
Explanation:
We known that TCP is the connection
protocol. So the TCP expects for the target host to acknowledge or to check that the
session has been established or not.
Also the End stations that is running reliable protocols will be working together in order to verify transmission of data so as to ensure the accuracy and the integrity of the data. Hence it is reliable and so the data can be sent A will still be delivered reliably and it is in-sequence at B.