Function Name Co2 Emissions Parameters Number Trolleys Int Number Buses Int Number Cars I Q43902433


Function name: co2 emissions (). Parameters: number of trolleys (int), number of buses (int), number of cars (int) Returns: string Description: You are trying to get to the fair and you want to determine the best route to take! You will be taking many different modes of transportation, and your goal is to determine which combination of these will produce the least amount of greenhouse gas emissions! You are traveling exactly one mile, and you know that trolleys release an average of 233 grams of CO2 per passenger mile, transit buses release an average of 299 grams, and cars (with 1 person) release an average of 371 grams. You may have to take multiple trolleys, busses, or cars (assume 1 person in the car) to get there. Determine the total amount of CO2 emissions that your total trip will release. If the total amount is less than or equal to 250 return “Great”, if it is between 250 and 1000 return “Not Good”, if it is greater than or equal to 1000 return “Bad!!”. Test Cases: >>> co2emissions (1,0,0) Great >>> co2emissions(0,0,3) Bad!! Show transcribed image text Function name: co2 emissions (). Parameters: number of trolleys (int), number of buses (int), number of cars (int) Returns: string Description: You are trying to get to the fair and you want to determine the best route to take! You will be taking many different modes of transportation, and your goal is to determine which combination of these will produce the least amount of greenhouse gas emissions! You are traveling exactly one mile, and you know that trolleys release an average of 233 grams of CO2 per passenger mile, transit buses release an average of 299 grams, and cars (with 1 person) release an average of 371 grams. You may have to take multiple trolleys, busses, or cars (assume 1 person in the car) to get there. Determine the total amount of CO2 emissions that your total trip will release. If the total
amount is less than or equal to 250 return “Great”, if it is between 250 and 1000 return “Not Good”, if it is greater than or equal to 1000 return “Bad!!”. Test Cases: >>> co2emissions (1,0,0) Great >>> co2emissions(0,0,3) Bad!!
Expert Answer
Answer to Function name: co2 emissions (). Parameters: number of trolleys (int), number of buses (int), number of cars (int) Retur…
OR