class Airplane – highlights -- planeID : String -planeModel: String //”Boeing 757” etc. --seatCapacity : int //would vary by outfitting ………… Assume getters and setters, toString(), constructor with parameters and constructor ……………… Write lambdas using a standard functional interface to: a) Given a plane object and a required number of seats as an input, determine if the given plane meets or exceeds the required capacity b) Output the plane description if capacity is less than 80% of a specified number (We would use his for planning aircraft assigned to various routes. ) c) Adjust the seats in a plane by a specified positive or negative number [after modifications have been made to the interior.] …and write an example for each showing the usage, using an Airplane instance plane1
class Airplane – highlights
-- planeID : String
-planeModel: String //”Boeing 757” etc.
--seatCapacity : int //would vary by outfitting
…………
Assume getters and setters, toString(), constructor with parameters
and constructor
………………
Write lambdas using a standard functional interface to:
a) Given a plane object and a required number of seats as an input, determine if the given plane meets or exceeds the required capacity
b) Output the plane description if capacity is less than 80% of a specified number
(We would use his for planning aircraft assigned to various routes. )
c) Adjust the seats in a plane by a specified positive or negative number [after modifications have been made to the interior.]
…and write an example for each showing the usage, using an Airplane instance plane1
Trending now
This is a popular solution!
Step by step
Solved in 2 steps