Answer:
Public int getHeight(){
return height;
}
public int getWidht(){
return widht;
}
public int setHeight(int change){
height = change;
}
public int setWidht(int change){
widht = change;
}
public int getPerimeter(){
int perimeter = 2 ( getWidht() + getHeight ());
return perimeter;
If the width is 10 and height 4, the perimeter should be 28.
Explanation:
An accessor in Java is a method that is used to get the value of an object variable. The program above has three accessor methods, getHeight, getWidht and getPerimeter.
Mutators are methods that is used to change of mutate the value of object variables. They are denoted or identified by the set prefix in their names. From the class code, the mutator are setHeight and setWidht.
Answer:
Yes, The overall cost of wiring in addressable fire alarm system is significantly cheaper than the conventional one.But the addressale fire alram system is more reliable than a conventional system.
Explanation:
Conventional systems are hardware-based and use analog technology. where addressable fire alarm use digital technology. addressable system is generally more reliable than a conventional system mainly due to how the different systems are wired. With a conventional system, if a device’s wire is damaged or severed, its signal and the signal of other devices down the line cannot be transmitted to the control panel.
With an addressable system, both ends of the wire connect to the control panel. Therefore, if one end becomes damaged or severed, signals can still reach the control panel through the other end of the loop. In addressable systems, a device can be removed or disabled and it will not affect the other devices in the loop.
Program Area_Circle;
Uses Crt;
Const
Pi = 3.1416;
Var
Radius : Integer;
Area : Real;
Begin
Clrscr;
Writeln('Area of a Circle Solver');
Writeln;
Write('Enter the Radius of the Circle : ');
Readln(Radius);
Area := (Pi * Radius * Radius);
Writeln;
Writeln('The Area of the Circle is ' ,Area:8:2,'.');
Writeln;
Writeln('Program Executed');
Readln;
End.
Hope this helps!