Answer:
Check the explanation
Explanation:
The desired Cold working (which is any process or procedure of metalworking in which the metal body is formed at a lower temperature beyond its recrystallization, typically at the ambient temperature.) tensile strength in excess of 750 MPa and a ductility of at least 12 %EL can be seen in the attached image below.
public class Point { private int x; private int y; public void setx(int x) this.x = x; public void setY(int y) this.y=y; public void setXY(int x, int y) X=y; ysy; public boolean IsEqual(Point p) return ((p.x == x) && (p.y == y)); public void DisplayPoint() System.out.println("(" + x + " +X+ + y + ")"); public void movePoint(int deltax, int deltay) {!! 'x' is increased by deltax and y is increased by deltay public void SetLocation(Point P) {//make point to have the specified location P. public static void main(String[] args) { // TODO Auto-generated method stub Point P1 = new Point(); Point P2 = new Point(); P1.setx(5); P1.setY(6); P2.setx(5); P2.setY(6); System.out.println(P1.IsEqual(P2)); P2.setXY(3,4); System.out.println(P1.IsEqual(P2)); Given the class 'Point' which has two member variables x, and y. What are x and y for Point object P1 after the end of the main method ? (Pay close attention to the setXY method) x=6, y=5 Ox=6, y= 6 x=5, y= 6 x=5, y= 5
Answer:
x =5
y =6
Explanation:
The reason behind that is that while using the reference P2 we have setted the values of X and Y both as 5 and 6 respectively in the main function.
After setting we are calling the setXY function which sets the value to 3 and 4 for X and Y respectively but does not implement in the value to the instance.
Apart from which setX and setY function are setting the values with respect to the instance variable using "this" keyword.
Hence, the values 5 and 6 are been displayed at the end of the main method.
A museum has three rooms, each with a motion sensor (m0, m1, and m2) that outputs 1 when motion is detected. At night, the only person in the museum is one security guard who walks from room to room. Using the combinational design process, create a circuit that sounds an alarm (by setting an output A to 1) if motion is ever detected in more than one room at a time (i.e., in two or three rooms), meaning there must be an intruder or intruders in the museum.
a. Describe the behavior of this problem with a truth table.
b. Find the minimal logic expression based on the truth table. You can use either K-map or Boolean algebra.
c. Construct the gate-level circuit schematic using the logic expression derived in problem b.
Answer:
a) see attachment
b) A= m0m1+ m1m2+ m0m2
see attachment for K-map
c) see attachment
Explanation:
a) see attachment for truth table
b) see attachment for k-map
A= m0m1+ m1m2+ m0m2
c) see attachment for gate level circuit