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:
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Introduction To Programming With Java A Problem Solving Approach
ISBN: 9781260575248
3rd International Edition
Authors: John Dean
Question Posted: