Was there life before computer?

gli strumenti di calcolo prima dell'era digitale


Lo Sneaky Calculator

Download the calculator with the instructions


This calculator is useful for checking the level of attention of the students. For some operations, previously programmed, it provides results clearly wrong.



The Sneaky Calculator is programmed to give an error in the following cases:

If the operation is: On the screen will appear:

120*2+80*2=400 120*2+80*2=600
120+120+80+80=400 120+120+80+80=600
1348*4=5392 1348*4=6390
184/8=23 184/8=27
1000000–999–22222=976779 1000000–999–22222=956777
5.4*504=2016 9;5.4*504=2416
456*32=14592 456*32=12596

You can use these operations to prepare simple Word Problems, here some samples:

  • A square measures mt.120 x 80. Find its perimeter.
  • € 1,348 worth of tickets were sold at the carnival. If tickets cost 4 for € 1, how many were sold?
  • You can earn € 8 a day by cutting the grass. How many days will it take you to earn € 184?
  • You had € 1 million, but then you spent $999 and then € 22,222. How much do you have left?
  • It takes 4 apples to make 1 pie. How many apples does it take to make 504 pies?
  • ecc. ecc.

To modify the settings:

  • Open the HTML page with Windows Notepad or another text editor;
  • Go to the section:

// Beginning of the error codes: change below the values of input and output
// Start error 1-----------------------
if (Snk.Display.value == "80*2+120*2=400") {
Snk.Display.value = "80*2+120*2=600";
}
// End error 1-------------------------
// Start error 2-----------------------
ecc. ecc.

  • Change the operation at the top of the paragraph with the correct operation that you want to be changed;
  • Change the operation at the bottom of each paragraph with the operation that you want to see on the display;
  • Eliminate the unwanted codes;
  • Do not change anything else.

Esempio:

// Start error 1-----------------------
if (Snk.Display.value == "1348*4=5392") {
Snk.Display.value = "1348*4=6390";
}
// End error 1-------------------------
// Start error 2-----------------------
ecc. ecc.

Instead 1348*4=5392 the display will show 1348*4=6390

Now save the document as .HTML: the calculator will work normal, except for the errors that you have set.

Sneaky-Calculator V 1.2.3.0 in JavaScript by Nicola Marras, created: Nov. 20, 2012 - last modified: Dec. 10, 2012. This Utility is released as freeware for personal and non-commercial use only. You are allowed to freely distribute this utility via CD-ROM, Internet, or in any other way, as long as you don't charge anything for this.



Nicola Marras 2008

      

Valid CSS 3!      Valid HTML 4.01!

Se visualizzate questa pagina priva del menω laterale
di navigazione cliccate sul banner per rientrare nel sito