Answer:
Java.
Explanation:
public class Rectangle {
private int x;
private int y;
private int width;
private int height;
///////////////////////////////////////////////////////////
public Rectangle(int inX, inY, inWidth, inHeight) {
x = inX;
y = inY;
width = inWidth;
height = inHeight;
}
///////////////////////////////////////////////////////////
public int getX() {
return x;
}
public int getY() {
return y;
}
public int getWidth() {
return width;
}
public int getHeight() {
return height;
}
///////////////////////////////////////////////////////////
public int getArea() {
return width * height;
}
public bool isSquare() {
if (width == height) {
return true;
}
else
return false;
}
///////////////////////////////////////////////////////////
public String toString() {
return "Rectangle located at (" + x + "," + y + ")" + "with dimensions " + width + "x" + height + "and " + getArea() + "is the area.";
}
}
Answer:
age=int(input("Enter age"))
if age>=18:
print("You are Young")
else
print("You are child")
Explanation:
if you have any query or any problem kindly ask in comment
Answer:
69.08265412 milliseconds
Explanation:
Lets first convert 7 MiB to bits
bits
Now convert bits to Gbits
Gbits
Queuing Delay = Total size/transmission link rate
Queuing Delay=
seconds
Delay of packet number 3 =
seconds
or
milliseconds
What are you trying to say?
Answer:
int sum = 0;
for (int i = 1; i < 100; i += 2) {
sum += i * i;
}
printf("The sum of cubes is %d", sum);
/* Prints: The sum of cubes is 166650 */
Explanation:
If 1 should be excluded, let the for loop start at 3.