Question: 1 5 . Implement ratings / endorsements ( OPTIONAL ) The next three functions has _ instrument _ rating, has _ advanced _ endorsement, has

15. Implement ratings/endorsements (OPTIONAL)
The next three functions has_instrument_rating, has_advanced_endorsement, has_multiengine_endorsement are completely optional. They will be used later by some sections of the project that are optional. You can code them now or you can choose to skip these for now and circle back to them later if you decide to work on the optional sections that depend on them. These functions are not necessary to complete this part of the project, and they will not be checked on submission. You can even work on this part of the project after the course is over, provided you copy these instructions.
These functions have to do with ratings (what conditions the pilot can fly in) and endorsements (what types of planes the pilot can fly). These are extremely short functions and can be computed in two or three lines. You simply need to look at the take-off time and compare it to the appropriate column for the student. As a reminder, the argument student is not a table of students but a single row of the table.
Implement these functions as specified and run the test script. If you have done everything correctly, you should see the following:
Testing module pilots
pilots.get_certification passed all tests
pilots.has_instrument_rating passed all tests
pilots.has_advanced_endorsement passed all tests
pilots.has_multiengine_endorsement passed all tests
Check It!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!