Question
Returns a list of String values This list will include only the information of eligible drivers using the format given in this part 2. all
Returns a list of String values
This list will include only the information of eligible drivers using the format given in this part 2.
all your arguments are lists that have respective information of a given driver at the same list position. For example, ["John", "Arya"], ["G1", "G2"], [16, 28], ["G", "G"] you can interpret that John has a G1 license for 16 months and is applying to take a G class road test; and that Arya has a G2 license for 28 months and is applying to take a G class road test. See the first test case to find out the resulting list.
List the eligible drivers Write a function that determines which requests are eligible to proceed taking the road test using the function created in Part 1 , and returns a list of eligible drivers information following the template below: For example, "John" with license class "G1" and 14 months experience wishes to take the "G2" road test, John's information would be included in the returning list as a string formatted to John is allowed to take the G2 road test. The returning list will only contain the information about those eligible to take the road test they applied for. Your function should: 1. Receive 4 arguments: - people : a list of String values with names of the drivers - a list of String values with the driver's current class - : a list of Integer values with duration in months that the person has held their current license for - : a list of String values with the class the driver is applying for 2. For each person in the list, check if they are eligible to take the road test they applied for using the isEligible function from part 1. - For a eligible drivers, you will insert their formatted information into aStep 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