Given the following Earth class and skeleton for an EarthDriver class, provide a futureTemperature method that receives

Question:

Given the following Earth class and skeleton for an EarthDriver class, provide a futureTemperature method that receives two parameters, years and annualGreenhouseGases. The years parameter holds the number of years into the future that the user is interested in. The annualGreenhouseGases parameter holds the annual emission of human- produced greenhouse gases in billions of tons. The method returns the predicted temperature for the given number of years into the future. In your method, use this (completely fabricated and unscientific) formula to calculate the earth’s temperature one year into the future: 

next year's temperature = current temperature + 2am (annual greenhouse gases-50) x .01 import

int futureYear; int years InFuture; double greenhouseGas; // year that user wants to predict temperature //

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: