home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b034 / gz.img / ╞▒╢ε2.PRG < prev    next >
Encoding:
Text File  |  1989-01-06  |  2.3 KB  |  162 lines

  1. *╚╦├±▒╥╞▒╢ε│╠╨≥:╞▒╢ε2.PRG
  2. clear
  3. set talk off
  4. use a:gz
  5. go top
  6. n=0
  7. sy=0
  8. wy=0
  9. ey=0
  10. yy=0
  11. wj=0
  12. ej=0
  13. yj=0
  14. wf=0
  15. ef=0
  16. yf=0
  17. clear
  18. @ 4,5 say '▓┐├┼:'
  19. @ 4,12 say w1
  20. @ 4,30 say 'N='
  21. @ 6,4 say '╩░╘¬:'
  22. @ 7,9 say '============'
  23. @ 6,19 say '╒┼'
  24. @ 6,22 say '╬Θ╘¬:'
  25. @ 7,27 say '============'
  26. @ 6,37 say '╒┼'
  27. @ 6,40 say '╖í╘¬:'
  28. @ 7,45 say '============'
  29. @ 6,55 say '╒┼'
  30. @ 6,58 say '╥╝╘¬:'
  31. @ 7,63 say '============'
  32. @ 6,73 say '╒┼'
  33. @ 10,22 say '╬Θ╜╟:'
  34. @ 11,27 say '============'
  35. @ 10,37 say '╒┼'
  36. @ 10,40 say '╖í╜╟:'
  37. @ 11,45 say '============'
  38. @ 10,55 say '╒┼'
  39. @ 10,58 say '╥╝╜╟:'
  40. @ 11,63 say '============'
  41. @ 10,73 say '╒┼'
  42. @ 14,22 say '╬Θ╖╓:'
  43. @ 15,27 say '============'
  44. @ 14,37 say '╒┼'
  45. @ 14,40 say '╖í╖╓:'
  46. @ 15,45 say '============'
  47. @ 14,55 say '╒┼'
  48. @ 14,58 say '╥╝╖╓:'
  49. @ 15,63 say '============'
  50. @ 14,73 say '╒┼'
  51. do while .not. eof()
  52. n=n+1
  53. store ╩╡╖ó╩² to sfs
  54. pe=sfs/10
  55. sy1=int(pe)
  56. pea=pe-sy1
  57. if pea<0
  58.    sy2=sy1-1
  59. endif
  60. if pea>=0
  61.    sy2=sy1
  62. endif
  63. sy=sy+sy2
  64. peb=sfs-10*sy2+0.0001
  65. if peb>=5
  66.    wy1=1
  67. endif
  68. if peb<5
  69.    wy1=0
  70. endif
  71. wy=wy+wy1
  72. pec=peb-5*wy1
  73. if pec>=4
  74.    ey1=2
  75. endif
  76. if pec<4.and.pec>=2
  77.    ey1=1
  78. endif
  79. if pec<2
  80.    ey1=0
  81. endif
  82. ey=ey+ey1
  83. ped=pec-2*ey1
  84. if ped>=1
  85.    yy1=1
  86. endif
  87. if ped<1
  88.    yy1=0
  89. endif
  90. yy=yy+yy1
  91. pee=ped-1*yy1
  92. if pee>=0.5
  93.    wj1=1
  94. endif
  95. if pee<0.5
  96.    wj1=0
  97. endif
  98. wj=wj+wj1
  99. pef=pee-0.5*wj1
  100. if pef>=0.4
  101.    ej1=2
  102. endif
  103. if pef<0.4.and.pef>=0.2
  104.    ej1=1
  105. endif
  106. if pef<0.2
  107.    ej1=0
  108. endif
  109. ej=ej+ej1
  110. peg=pef-0.2*ej1
  111. if peg>=0.1
  112.    yj1=1
  113. endif
  114. if peg<0.1
  115.    yj1=0
  116. endif
  117. yj=yj+yj1
  118. peh=peg-0.1*yj1
  119. if peh>=0.05
  120.    wf1=1
  121. endif
  122. if peh<0.05
  123.    wf1=0
  124. endif
  125. wf=wf+wf1
  126. pei=peh-0.05*wf1
  127. if pei>=0.04
  128.    ef1=2
  129. endif
  130. if pei<0.04.and.pei>=0.02
  131.    ef1=1
  132. endif
  133. if pei<0.02
  134.    ef1=0
  135. endif
  136. ef=ef+ef1
  137. pej=pei-0.02*ef1
  138. yf1=int(pej*100)
  139. yf=yf+yf1
  140. @ 4,32 say n
  141. @ 6,09 say sy
  142. @ 6,27 say wy
  143. @ 6,45 say ey
  144. @ 6,63 say yy
  145. @ 10,27 say wj
  146. @ 10,45 say ej
  147. @ 10,63 say yj
  148. @ 14,27 say wf
  149. @ 14,45 say ef
  150. @ 14,63 say yf
  151. skip
  152. enddo
  153. zje=10*sy+5*wy+2*ey+1*yy+0.5*wj+0.2*ej+0.1*yj+0.05*wf+0.02*ef+0.01*yf
  154. @ 17,20 say '╩╡╖ó╜≡╢ε╫▄╩²:'
  155. @ 17,33 say zje
  156. @ 17,50 say '(╘¬)'
  157. use b:pes
  158. replace ╘┬╖▌ with mo2,╩░╘¬ with sy,╬Θ╘¬ with wy,╖í╘¬ with ey,╥╝╘¬ with yy,╬Θ╜╟ with wj,╖í╜╟ with ej,╥╝╜╟ with yj,╬Θ╖╓ with wf,╖í╖╓ with ef,╥╝╖╓ with yf,╩╡╖ó╩² with zje for ▓┐├┼=w1
  159. use
  160. return
  161.  
  162.