Guest

Untitled

By: a guest on Feb 13th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1.  harjtyopisteet=((15*pisteet1+20*pisteet2+30*pisteet3+35*pisteet4)/20);
  2.  
  3.         //seuraavaksi ehtolauseet harjoitustoista saataville lisapisteille
  4.         if (harjtyopisteet < 61) {
  5.             harjtyolisapisteet = -99;
  6.         }
  7.         if (harjtyopisteet==61) {
  8.             harjtyolisapisteet = -38;
  9.         }
  10.         if (harjtyopisteet==62) {
  11.             harjtyolisapisteet = -32;
  12.         }
  13.         if (harjtyopisteet==63) {
  14.             harjtyolisapisteet = -27;
  15.         }
  16.         if (harjtyopisteet==64) {
  17.             harjtyolisapisteet = -23;
  18.         }
  19.         if (harjtyopisteet==65) {
  20.             harjtyolisapisteet = -20;