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

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