avtonorm 562 B

123456789101112131415161718192021222324
  1. # avtonorm
  2. if car = 1:normhour = 20
  3. if car = 2:normhour = 20
  4. if car = 3:normhour = 20
  5. if car = 4:normhour = 20
  6. if car = 5:normhour = 20
  7. if car = 6:normhour = 20
  8. if car = 7:normhour = 20
  9. if car = 8:normhour = 20
  10. if car = 9:normhour = 15
  11. if car = 10:normhour = 18
  12. if car = 11:normhour = 15
  13. if car >= 95:normhour = 50
  14. if wrek = 0:
  15. normneed = tehcar - teh
  16. normrem = normneed * normhour
  17. elseif wrek = 1:
  18. normneed = tehcar - teh
  19. normremK = (normneed * normhour) * 70
  20. normrem = (normneed * normhour) + normremK
  21. end
  22. --- avtonorm ---------------------------------