Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 image text in transcribed
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Principles Of Database Systems With Internet And Java Applications

Authors: Greg Riccardi

1st Edition

020161247X, 978-0201612479

More Books

Students also viewed these Databases questions

Question

Explain how to build high-performance service delivery teams.

Answered: 1 week ago

Question

Understand what a service-oriented culture is.

Answered: 1 week ago