4
answers
0
watching
875
views
26 Dec 2017
Question 12. [15 MARKS] In this question, you will develop two classes to keep track of airplanes and flights. Here is the header and docstring for class Airplane. class Airplane: Information about a particular airplane including the model, the serial number, the number of seats, and the number of miles travelled. Part (a) [2 MARKS] Complete method __init_for class Airplane. Note: you will most likely not need all of the space on this page. def __init__(self, plane_model, serial_num, num_seats, miles_travelled): (Airplane, str, str, int, float) Record the airplane's model plane_model, serial number serial_num, the number of seats, and the distance travelled miles_travelled. >>> airplane - Airplane('Boeing 747', '19643', 366, 45267.7) >>> airplane.model 'Boeing 747 >>> airplane serial 19643 >>> airplane. seats 366 >>> airplane.miles 45267.7
Question 12. [15 MARKS] In this question, you will develop two classes to keep track of airplanes and flights. Here is the header and docstring for class Airplane. class Airplane: Information about a particular airplane including the model, the serial number, the number of seats, and the number of miles travelled. Part (a) [2 MARKS] Complete method __init_for class Airplane. Note: you will most likely not need all of the space on this page. def __init__(self, plane_model, serial_num, num_seats, miles_travelled): (Airplane, str, str, int, float) Record the airplane's model plane_model, serial number serial_num, the number of seats, and the distance travelled miles_travelled. >>> airplane - Airplane('Boeing 747', '19643', 366, 45267.7) >>> airplane.model 'Boeing 747 >>> airplane serial 19643 >>> airplane. seats 366 >>> airplane.miles 45267.7
abhisheksinghLv10
1 Oct 2023
22 Jun 2023
Already have an account? Log in
Keith LeannonLv2
26 Dec 2017
Already have an account? Log in