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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started