Question: In python 2 or 3 please has just released a car enterprise division that provides a utility for renting Rivian vehicles. A user can rent

 In python 2 or 3 please has just released a car

enterprise division that provides a utility for renting Rivian vehicles. A user

can rent a vehicle based on the vehicle attributes as shown in

In python 2 or 3 please

has just released a car enterprise division that provides a utility for renting Rivian vehicles. A user can rent a vehicle based on the vehicle attributes as shown in the table below: Vehicle Attribute DataType Options Scoring Criteria Road_Conditions STR_ARR # of conditions met Gravel, Sand, Mud, Asphalt, Snow, Ice Max_Inclination INT If within bounds 0 user's rental rate, the user cannot rent that vehicle. Design Requirements: Write a function that given a STR_ARR Road_Conditions, INT Max_Inclination, STR_ARR Drive_Train, INT_ARR Operating Temperature, INT Rental_Rate returns a STR Vehicle with the highest overall ranking based on the Scoring Criteria above. In the case of a tie, the vehicle with the cheapest rental under the specified rate wins the ranking. If no conditions are met return "No Cars Available". Assumptions: user must provide at least one input for a vehicle attribute Example: Input: Road_Conditions = [Gravel, Sand], Max_Inclination = 15, Drive_Train = [All Wheel], Operating Temperature = [-10,20), Rental_Rate = 120 How scoring is calculated using the Vehicle Specifications at the bottom of the page: Vehicle Operating Temperature Drive Train Rental Road Conditions Max Inclination Total Score Rate R15 +1 (Gravel) 0 0 +1 2 0 (lower bound not in range) R1T +1 (Sand) +1 ( #!/bin/python3.... 10 11 # 12 # Complete the 'RivianEnterprise' function below. 13 # 14 # The function is expected to return a STRING. 15 # The function accepts STRING_ARRAY Questionare as parameter. # 17 # 1. STRING_ARRAY Road_Conditions 18 # 2. INTEGER Max_Inclination 19 # 3. STRING_ARRAY Drive_Train 20 # 4. INTEGER_ARRAY Operating Temperature 21 # 5. INTEGER Rental_Rate 22 23 def RivianEnterprise (Road_Conditions, Max_Inclination, Drive_Train, Operating Temperature, Rental_Rate): 24 # Write your code here 25 26 > if name __main__': NNN ==

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!