Answer:
import java.awt.Point;
public class Line{
private Point point1, point2;
public Line(Point p1, Point p2){
point1 = p1;
point2 = p2;
}
public Point getP1(){
return point1;
}
public Point getP2(){
return point2;
}
public String toString(){
return "[( The " + point1.x + "," + point1.y + "), (" + point2.x + "," + point2.y +")]";
}
public static void main(String args[]){
Line lineObj = new Line(new Point(7,9), new Point(6,2));
System.out.println(lineObj.toString());
}
}
Explanation:
- Declare the points inside the class Line.
- Initialize the getters and setters method for the class.
- Define a toString method that returns the information in a formatted manner.
- Inside the main method, initialize an object with some values.
- Display the information by calling the toString method.
MOHR-COULOMB FAILURE CRITERIA:
In 1900, MOHR-COULOMB states Theory of Rupture in Materials which defines as “A material fails due to because of a critical combination of normal and shear stress, not from maximum normal or shear stress”. Failure Envelope is approached by a linear relationship.
If you can not understand the below symbols see the attachment below
f f ()
Where: f = Shear Stress on Failure Plane
´= Normal Stress on Failure Plane
See the graph in the attachment
For calculating the shear stress, when Normal stress, cohesion and angle of internal friction are given. Use this formula: shear stress = f c tan
Where,
• f is Shear Stress on Failure Plane
• c is Cohesion
• is Normal Total Stress on Failure Plane
• is Friction Angle
Answer:
When two or more computers are connected together so they can communicate with one another, they form a network. The largest computer network in the world in the Internet.