Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 5 . Implement ratings / endorsements ( OPTIONAL ) The next three functions has _ instrument _ rating, has _ advanced _ endorsement, has
Implement ratingsendorsements OPTIONAL
The next three functions hasinstrumentrating, hasadvancedendorsement, hasmultiengineendorsement 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 takeoff 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.getcertification passed all tests
pilots.hasinstrumentrating passed all tests
pilots.hasadvancedendorsement passed all tests
pilots.hasmultiengineendorsement passed all tests
Check It
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