Question: Every machine has some weight . Aircraft is a machine that can fly by gaining support from air. It counters the force of gravity either

Every machine has some weight. Aircraft is a machine that can fly by gaining support from air. It counters the force of gravity either by using static lift or dynamic lift. Aerostats are the aircrafts that use static lift. Hot air balloon is an example of aerostat. Aerodynes are the aircraft that use dynamic lift. Aerodynes can be of fixed-wing or of rotary-wing. Airbus A380 is an example of fixed-wing aircraft. Helicopter is an example of rotary-wing aircraft. Design the set of classes that represents various types of aircrafts and through main program show how your classes would work.

Sample main program:

public class HW4E1Soln {

public static void main(String args[])

{

Aerostat balloonAircraft = new Aerostat(1000, "Balloon Aircraft ");

balloonAircraft.fly();

Aerodyne airBus320 = new Aerodyne(800000, "Air Bus 320 ");

airBus320.setLift("dynamic lift");

airBus320.setWing("fixed wing");

airBus320.fly();

Aerodyne helicopter = new Aerodyne(5000,"Helicopter ");

helicopter.setWing("rotary wing");

helicopter.fly();

}

}

Sample input/output:

Balloon aircraft Flies using static lift technique has weight 1000.0 kgs

Air Bus 320 Flies using dynamic lift technique and has fixed wing and has weight 800000.0 kgs

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!