Helper methods are used in order to encapsulate different parts of computation so that your code becomes more readable. In my example, you encapsulate the entire computation within...
Type: Posts; User: angstrem
Helper methods are used in order to encapsulate different parts of computation so that your code becomes more readable. In my example, you encapsulate the entire computation within...
You can, for instance, make a method with the whole formula. So, that your loop would look like as follows:
for(double c = 280; c <= 400; c += 5) {
String earthsurfTemp =...
That's why self-education is better :)
One guy posted similar question with similar assignment yesterday.
Now remember: int/int=int, not double. For example C0/PRE_CARBON is always an integer, not double.