Question: Tasks: Proposal: Identify a problem that we face with the enormity of greenhouse emissions and its effect on global warming. You should identify a specificproblem
Tasks:
Proposal: Identify a problem that we face with the enormity of greenhouse emissions and its effect on global warming. You should identify a specificproblem thatcan be addressed in asmallapplication, working prototypeor a proof of concept. Write a proposal approximately one to two pages listing your group members and your selected problem.Include multiple two to four strategies for addressing the problem.Strategies can include solutions that are not possible yet.Propose one or more solutions for each strategy.Include the benefits and disadvantages of each solution. Indicate whichsolutionyourteamwillimplement andwhyit was selected.Foryoursolution,identify whatwillbe theinputsforexamplefiles,ausertyping,etc. andwhatwillbetheoutputs
Write based on the code below using Greenhouse gas emissions as the chosen solution
#This script helps users reduce their vehicle greenhouse gas emissions by recommending strategies.
#Inputs: Current vehicle emissions data in grams per kilometer
#Outputs: Recommended strategies and potential emission savings.
def calculateemissionsavingscurrentemissions, strategyfactor:
# Calculate potential emission savings based on current emissions and strategy factor.
# Parameters:
# currentemissions float: The current emissions in grams per kilometer.
# strategyfactor float: The reduction factor for the chosen strategy.
# Returns:
# float: Potential emission savings.
return currentemissions strategyfactor
def main:
printWelcome to the Greenhouse Gas Emission Reduction Tool"
while True: # Loop to keep the program running
try:
# Get user input for current emissions
currentemissions floatinputEnter your vehicle's current emissions gramskm:
# Available strategies and their reduction factors
strategies
"Carpooling": # reduction
"Public Transport": # reduction
print
Available Strategies:"
for strategy in strategies:
printfstrategy
# Get user choice for strategy
choice inputChoose a strategy CarpoolingPublic Transport or type 'exit' to quit: strip
if choice.lower 'exit': # Exit the loop if user types 'exit'
printThank you for using the tool!"
break
if choice in strategies:
# Calculate emission savings based on chosen strategy
savings calculateemissionsavingscurrentemissions, strategieschoice
printf
By adopting choice you can reduce your emissions by savings:f gramskm
else:
printInvalid choice. Please choose a valid strategy.
except ValueError:
printInvalid input. Please enter a numeric value for emissions.
if namemain:
main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
