Answer:
public class ANot {
public static void main(String[] args) {
int numberOfSides = 20;
boolean isQuadrilateral;
if(numberOfSides==4){
isQuadrilateral = true;
System.out.println("The triangle is quadrilateral");
}
else{
isQuadrilateral=false;
System.out.println("The triangle is not quadrilateral");
}
}
}
Explanation:
- Create and Initilize the int variable numberOfSides (You can also receive this from a user using the scanner class for example).
- create a boolean variable isQuadrilateral
- Use if and else statement to check if numberOfSides ==4 and assign true to isQuadrilateral else assign false
Answer:
Microprocessor
Explanation:
A microprocessor is a programmable chip that incorporates in itself the functions of a computer's central processing unit. It contains millions of small components such as transistors and resistors. In fact, the microprocessor is sometimes called the CPU itself as it contains an Arithmetic Logic Unit(ALU), a control unit and register array.
They work at a very high speed due to the components that they contain and are available at relatively low cost. They are portable, reliable and compared to vacuum tubes, they generate less heat.
<em>Hope this helps!</em>
In your question whereas there is a class named window and it would be like this:
class window {
//code here
}
Next is there is a function called close and freeresource and it goes like this:
class window{
function close( ){
//code here
}
function freeresource( ){
// code here
}
public destruct (){
this.close();
this.freeresource();
}
}
The last code function destruct invokes the function close and freeresource. Hope this would help
Answer:
To solve mathmatical problem
To make questions paper
Answer:
The typedef struct is as follows:
typedef struct jumper_t {
char name[16];
double tries[N_TRIES];
double best_jump;
double deviation;
} jumper_t;
The declaration of jlist is:
jumper_t jlist[10];
Explanation:
This defines the typedef structure
typedef struct jumper_t {
The following declares the variables as stated in the question
<em> char name[16];
</em>
<em> double tries[N_TRIES];
</em>
<em> double best_jump;
</em>
<em> double deviation;
</em>
}
This ends the typedef definition
jumper_t;
(b) The declaration of array jlist is:
jumper_t jlist[10];