Answers for "something"

1

something

setScreen("screen1"); 

onEvent("button1", "click", function( ) { 

  setScreen("screen2"); 

  onEvent("Buttoncircle", "click", function( ) { 

    setText("Circumference1", Math.round(2 * (3.14 * getNumber("Radiusenter1"))) + "cm"); 

    setText("Areanswer1", 2 * (3.14 * (getNumber("Radiusenter1") * getNumber("Radiusenter1"))) + "sq.cm"); 

  }); 

}); 

onEvent("Home", "click", function( ) { 

  setScreen("screen1"); 

}); 

onEvent("button2", "click", function( ) { 

  setScreen("screen3"); 

  onEvent("Calculate2", "click", function( ) { 

    setText("Area2", getNumber("UnitCentimetresCM") * getNumber("UnitCentimetresCM") + "cm"); 

    setText("Perimeter1", 4 * getNumber("UnitCentimetresCM") + "sq.cm"); 

  }); 

}); 

onEvent("Home1", "click", function( ) { 

  setScreen("screen1"); 

}); 

onEvent("button3", "click", function( ) { 

  setScreen("screen4"); 

  onEvent("button8", "click", function( ) { 

    setText("label16", 2 * (getNumber("UnitCentimetreCM1") + getNumber("UnitCentimetreCM")) + "sq.cm"); 

    setText("label14", getText("UnitCentimetreCM") * getText("UnitCentimetreCM1") + "cm"); 

  }); 

}); 

onEvent("button9", "click", function( ) { 

  setScreen("screen1"); 

});
Posted by: Guest on June-17-2021

Browse Popular Code Answers by Language