People will select your answer to be the BRAINLIEST. There has to be at least two answers on a question though. You cannot give yourself the brainliest answer either.
Answer:
Software is the correct answer.
Explanation:
Software is the collection of programs or the group of instruction through which the computer system's hardware knows that what works they have to do. In other words, it is the computer program through which hardware of the computer systems understand how to work. There are several types of software such as application software, system software, and utility software.
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.
Answer:
In this example you will learn to create a simple calculator that can add, subtract, multiply or divide depending upon the input from the user.
Explanation: