class Airplane – highlights -- modelID : String -planeType: String //”propeller” “jet” --fuelOnBoard : int --fuelCapacity: int //gallons …………... Assume getters...

70.2K

Verified Solution

Question

Programming

class Airplane – highlights

-- modelID : String

-planeType: String //”propeller” “jet”

--fuelOnBoard : int

--fuelCapacity: int //gallons

…………...

Assume getters and setters, toString(), constructor withparameters

and constructor

……………

Write lambdas using a standard functional interfaceto:

a) Given a plane object and “propeller” or “jet” as aninput, determine if the given plane matched the giventype

b) Output the plane description and “plane needs fuel”if fuel on board is less than 80% of fuel capacity

c) Adjust the fuel by a specified number of gallons andwrite an example for each showing the usage, using an Airplaneinstance plane1

Please use Java, don't use other coding languages tosolve it. Thank you

Answer & Explanation Solved by verified expert
4.2 Ratings (696 Votes)
ExplanationI have written Airplane class all the threefunctional interfaces and an AirplaneTester class to test theinterfacesI have also shown the example for each in the outputplease find the image attached with the answerPlease upvote if youliked my answer and comment if you need any modification orexplanationcodeAirplane classpublic class Airplane private String modelID private String planeType private int fuelOnBoard private int fuelCapacity public AirplaneString modelID String    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students