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:
check the roster for which room u need to be in
Answer:
Explanation:
def cvtToSeconds(hours,minutes,seconds):
total_seconds=3600*hours+60*minutes+seconds;
return total_seconds
def readData():
hours = eval(input("Enter Hours: "))
minutes = eval(input("Enter Minutes: "))
seconds = eval(input("Enter Seconds: "))
total_seconds=cvtToSeconds(hours,minutes,seconds)
print("Total Seconds: "+str(total_seconds))
readData()