Question: JAVA PROGRAM: A flight simulator game involves several manned aircraft types, like single-engine prop airplane, helicopter, fighter jet. A simulated flight consists the following operations,
JAVA PROGRAM:

A flight simulator game involves several manned aircraft types, like single-engine prop airplane, helicopter, fighter jet. A simulated flight consists the following operations, in this given order, for all aircraft types: 1. takeoff, 2. fly, 3. land. Each aircraft type does these operations in a way that is very specific, as one would imagine. Executing a simulation involves creating an aircraft object of a particular type, then running the flight scenario a) Use the Template Method design pattern to design the architecture of the flight simulator as above. Include a class that runs the scenario. Create the necessary class hierarchy so that it's easy to add new aircraft types. Which is the abstract class? Write the UML class diagram. Make sure to include classes, interfaces (if any), relationships, attributes, and methods (with parameters). Write the UML sequence diagram for the flight scenario b) Implement the architecture in Java. NOTE: For this problem you are free to identify and name classes as you please. Follow the approaclh from Chapter 2. You will need a class that puts things together to run a simulation scenario. Since we don't have sufficient information on how to actually simulate the phases of aircraft flight, we will simply use System.printlnc"...." statements to fake them
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
