0
Reply

please wrrite code for c,c++ ,c# or java

raju bob

raju bob

Sep 19 2013 2:42 AM
1.3k

Question # 799

An Airplane is good if the following conditions are met.

  1. Number of words in the name should be greater than 1 and should start with "air".
  2. Average speed should be greater than 250 Km/hrs.
  3. Total distance covered by Airplane should be greater than 5000 Km.
  4. Passengers should be happy.
  5. Must have a specification “Baggage: 60 lbs (maximum)”

Write a method: 

boolean isGoodAirplane(String airplaneName, int averageSpeed, int distanceCovered, boolean isPassengerHappy, String[] specifications)

airplaneName     the name of the AirPlane
averageSpeed     the Average speed of the plane in Km/hrs
distanceCovered     the total distance covered by the airPlane
isPassengerHappy     a boolean value that is true if the passengers are happy otherwise false that return true if Airplane is good otherwise false
specifications     Array of specifications in plane. Like Seats: 2, Baggage: 60 lbs (maximum), Fuel (Auto Gas or Av Gas): 20 gal, Range: 300 NM, etc.


Next Recommended Forum