Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago