Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please add conments to guide through steps The Challenge Background: You are working for the Ministry of Transportation in Ontario. You are asked to create

Please add conments to guide through steps
image text in transcribed
image text in transcribed
The Challenge Background: You are working for the Ministry of Transportation in Ontario. You are asked to create a program that checks people's eligibility to take road tests. To be allowed to take a " G " class road test, the person must: - have a "G2" license for at least 24 months To be allowed to take a "G2" class road test, the person must: - have a "G1" license for at least 12 months This challenge has 2 parts: Part 1 Elibility Check Write a function iseligile that determines someone's eligibility to take a road test for a given class following the criteria described in the scenario Elibility Check Write a function isEligile that determines someone's eligibility to take a road test for a given class following the criteria described in the scenario. Your function should: 1. Receive 3 arguments: - current_class : a String value with current driving class - time : a Integer value representing the number of months the person has held their current class - test_class : a String value with the road test class they want to test their eligibility for 2. Check using the current_class and time matches the criteria of the test_class to be eligible. 3. Returns a Boolean value - True :if eligible - False if not eligible 4. Your solution MUST employ the "flag" technique to determine the eligibility. Also, please provide 5 extra test cases like the ones shown

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

Question What is a Roth 403 (b) plan?

Answered: 1 week ago