Question: please solve asap 4. Given the following Java code, draw a UML class diagram: public class Propeller public double thrust; public int mileage: 7 public

please solve asap  please solve asap 4. Given the following Java code, draw a
UML class diagram: public class Propeller public double thrust; public int mileage:
7 public class Engine public double power public int mileage: public class

4. Given the following Java code, draw a UML class diagram: public class Propeller public double thrust; public int mileage: 7 public class Engine public double power public int mileage: public class Plane public Propellerd myPropellers, public Engine myEngine: public Plane X myPropeller = new Propeller(2): my Propeller[0] = new Propeller(): myPropeller[i] = new Propeller(): myEngine = new Engine(): public class Pilot public int flightHours: public void fly(Plane p) / 1 public class Fighter Pilot extends Pilot public int rank: 1 3. We intend to design a Fire Alarm System for a building with two apartment units. The software specification for the alarm system is as follows: The alarm system has an ON/OFF switch to activate or deactivate the whole system. Each apartment unit has a smoke sensor. When the smoke is sensed in one apartment unit, the alarm in that unit starts Ringing. If the smoke is gone in less than 5 minutes then the alarm in that unit will stop Ringing. If the alarm remains activate for more than 5 minutes, then the alarm system in both units become activate; and a message is sent to the fire station. Design a component diagram 5. Consider a system that includes a Web server and two database servers. Both database servers are identical: The first acts as a main server, while the second acts as a redundant backup in case the first one fails. Users use Web browsers to access data through the Web server. They also have the option of using a proprietary client that accesses the databases directly. Draw a UML deployment diagram representing the hardware/software mapping of this system

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!