/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://lowell-simon.sketchpad.cc/sp/pad/view/ro.$xSDmfpJ80j/rev.82
*
* authors:
* First Last
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
// This sketch builds on a prior work, "TempConversion", created by Art Simon
// http://lowell-simon.sketchpad.cc/sp/pad/view/ro.AjbgBRSzsZbAwe/rev.205
int [] temperatures = {212, 32, -40};
void setup()
{
size(300,300);
}
void draw()
{
background(0);
text("there are " + temperatures.length + " temperatures", 10, 50);
for (int i = 0 ; i < temperatures.length; i++)
{
text(temperatures[i] + " degrees farenheit is " + ((temperatures[i] - 32)*5/9) + " in celsius" ,10, i * 20 + 70);
}
}