Answered step by step
Verified Expert Solution
Question
1 Approved Answer
def get _ certification ( takeoff , student ) : Returns the certification classification for this student at the time of takeoff.
def getcertificationtakeoffstudent:
Returns the certification classification for this student at the time of takeoff.
The certification is represented by an int, and must be the value PILOTNOVICE,
PILOTSTUDENT, PILOTCERTIFIED, PILOTHOURS, or PILOTINVALID. It is PILOTHOURS
if the student has certified Hours' before this flight takeoff. It is
PILOTCERTIFIED if the student has a private license before this takeoff and
PILOTSTUDENT if the student has soloed before this takeoff. A pilot that has only
just joined the school is PILOTNOVICE. If the flight takes place before the student
has even joined the school, the result is PILOTINVALID.
Recall that a student is a element list of strings. The first three elements are
the student's identifier, last name, and first name. The remaining elements are all
timestamps indicating the following in order: time joining the school, time of first
solo, time of private license, time of hours certification, time of instrument
rating, time of advanced endorsement, and time of multiengine endorsement.
Parameter takeoff: The takeoff time of this flight
Precondition: takeoff is a datetime object with a time zone
Parameter student: The student pilot
Precondition: student is element list of strings representing a pilot
pass # Implement this function
How do I implement the function to this? the above answer is not correct
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