home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / b / b077 / 1.img / SBGL.ZIP / BB1.PRG < prev    next >
Encoding:
Text File  |  1979-12-31  |  5.0 KB  |  240 lines

  1. clear
  2. set talk off
  3. c8='     '
  4. @ 4,15 say "╟δ╩Σ╚δ╧╓╘┌╡──Ω╘┬:" get c8 pict '99.99'
  5. read
  6. clear
  7. @ 4,15 say "╒²╘┌╝╞╦π╙δ┤≥╙íú¼╟δ╔╘║≥"
  8. set cons off
  9. use jdx
  10. loca for jdx2='╛½├▄'
  11. tt=jdx1
  12. loca for jdx2='┤≤╨═'
  13. rr=jdx1
  14. loca for jdx2='╧í╙╨'
  15. qq=jdx1
  16. close database
  17. sele 1
  18. use dw
  19. sele 2
  20. use bjh
  21. sele 3
  22. use dq
  23. sele 4
  24. use yl
  25. sele 5
  26. use yb
  27. sele 6
  28. use sb            
  29. sele 7
  30. use dgm
  31. sele 8
  32. use xl
  33. sele 9
  34. use bb
  35. set print on
  36. ? chr(27)+"IJ"
  37. set print off
  38. set device to print 
  39. @ prow()+1,55 say "╔Φ▒╕╫┤┐÷╫█║╧▒¿▒φ"
  40. @ prow()+1,1 say "                                    "
  41. @ prow()+1,100 say "▒¿▒φ╚╒╞┌:"+c8
  42. c=c8+'.'+'30'
  43. j1=substr(c,4,2)
  44. j2=substr(c,7,2)
  45. j3=substr(c,1,2)
  46. c=j1+'/'+j2+'/'+j3
  47. c=ctod(c)
  48. @ prow()+1,1 say ì
  49. "=================================================================ì
  50. =========================================================" 
  51. @ prow()+1,1 say "|            |╓≈   ╥¬   ╔Φ   ▒╕|╛½  ┤≤  ╧í  ╔Φ ▒╕|╤╣   ┴ª   ╚▌   ╞≈|╢»   ┴ª   ╔Φ   ▒╕|╥╟             ▒φ|╛▓   ├▄   ì
  52. ╖Γ   ╡π|"
  53. y1=0
  54. y2=0
  55. y4=0
  56. y5=0
  57. y7=0
  58. y8=0
  59. y10=0
  60. @ prow()+1,1 say "|            ì
  61. |-----------------------------------------------------------------ì
  62. ------------------------------------------|"
  63. @ prow()+1,1 say "|            |  ╫▄ |  ═Ω |  ═Ω |  ╫▄ |  ═Ω | ì
  64.  ═Ω |  ╫▄ |  ╬┤ |  ═Ω |  ╫▄ |  ═Ω |  ═Ω |  ╫▄ |  ═Ω |  ì
  65. ═Ω |  ╫▄ |  ╨╣ |  ╨╣ |"
  66. @ prow()+1,1 say "|▓┐        ├┼|  ╠¿ |  ║├ |  ║├ |  ╠¿ |  ║├ | ì
  67.  ║├ |  ╠¿ |  ═Ω |  │╔ |  ╠¿ |  ║├ |  ║├ |  ╠¿ |  ║├ |  ì
  68. ║├ |     |  ┬⌐ |  ┬⌐ |"
  69. @ prow()+1,1 say "|            |  ╩² |  ╠¿ |  ┬╩ |  ╩² |  ╠¿ | ì
  70.  ┬╩ |  ╩² |  │╔ |  ┬╩ |  ╩² |  ╠¿ |  ┬╩ |  ╩² |  ╠¿ |  ì
  71. ┬╩ |  ╩² |  ╡π |  ┬╩ |"
  72. y11=0
  73. y13=0
  74. y14=0
  75. y16=0
  76. y17=0
  77. @ prow()+1,1 say "|            | (╕÷)|  ╩² |  %  | (╕÷)|  ╩² |  %  ì
  78. | (╕÷)|  ╩² |  %  | (╕÷)|  ╩² |  %  | (╕÷)|  ╩² |  %  |(╕÷ì
  79. ) |  ╩² |  %. |"    
  80. y3=0
  81. y6=0
  82. y9=0
  83. y12=0
  84. y15=0
  85. y18=0
  86. @ prow()+1,1 say ì
  87. "|================================================================ì
  88. ========================================================|"
  89. sele 1
  90. do while .not. eof()
  91. a=dw1
  92. b=dw2
  93. sele 2
  94. set exac off
  95. count to x1 for bjh15=a  
  96. count to x2 for bjh15=a .and. bjh14='y'
  97. y1=y1+x1
  98. y2=x2+y2
  99. if x1<>0
  100. x3=x2/x1*100
  101. endif
  102. count to x4 for bjh15=a .and. (bjh16=tt .or. bjh16=rr .or. ì
  103. bjh16=qq)
  104. count to x5 for bjh15=a .and. (bjh16=tt .or. bjh16=rr .or. ì
  105. bjh16=qq) .and. bjh14='y'
  106. y4=y4+x4
  107. y5=y5+x5
  108. if x4<>0
  109. x6=x5/x4*100
  110. endif
  111. set exac on
  112. sele 4
  113. count to x7 for yl4=a
  114. count to x8 for yl4=a .and. (yl31+yl26<c .or. yl32+yl27<c .or. ì
  115. yl33+yl28<c)
  116. y7=y7+x7
  117. y8=y8+x8
  118. if x7<>0 
  119. x9=(x7-x8)/x7*100
  120. endif
  121. sele 3
  122. count to x10 for dq9=a
  123. count to x11 for dq9=a .and. dq8='y'                  
  124. y10=y10+x10
  125. y11=y11+x11
  126. if x10<>0
  127. x12=x11/x10*100
  128. endif
  129. sele 5
  130. count to x13 for yb10=a
  131. count to x14 for yb10=a .and. yb7='y'
  132. y13=y13+x13
  133. y14=x14+y14
  134. if x13<>0
  135. x15=x14/x13*100
  136. endif
  137. sele 6
  138. sum sb35 to x16 for sb28=a
  139. sele 7
  140. loca for dgm1=a
  141. x16=x16+dgm2
  142. sele 8
  143. loca for xl2=a
  144. x17=xl4
  145. y16=y16+x16
  146. y17=x17+y17
  147. if x16<>0
  148. x18=x17/x16*1000
  149. endif
  150. sele 9
  151. @ prow()+1,1 say "|"+b
  152. @ prow(),14 say "|"+str(x1,5)
  153. @ prow(),20 say "|"+str(x2,5)
  154. if x1<>0
  155. @ prow(),26 say "|"+str(x3,5)
  156. y3=y3+x3
  157. else
  158. @ prow(),26 say "|"+"  ~~%"
  159. endif
  160. @ prow(),32 say "|"+str(x4,5)
  161. @ prow(),38 say "|"+str(x5,5)
  162. if x4<>0
  163. @ prow(),44 say "|"+str(x6,5)
  164. y6=y6+x6
  165. else
  166. @ prow(),44 say "|"+"  ~~%"
  167. endif
  168. @ prow(),50 say "|"+str(x7,5)
  169. @ prow(),56 say "|"+str(x8,5)
  170. if x7<>0
  171. @ prow(),62 say "|"+str(x9,5)
  172. y9=y9+x9
  173. else
  174. @ prow(),62 say "|"+"  ~~%"
  175. endif
  176. @ prow(),68 say "|"+str(x10,5)
  177. @ prow(),74 say "|"+str(x11,5)
  178. if x10<>0
  179. @ prow(),80 say "|"+str(x12,5)
  180. y12=y12+x12
  181. else
  182. @ prow(),80 say "|"+"  ~~%"
  183. endif
  184. @ prow(),86 say "|"+str(x13,5)
  185. @ prow(),92 say "|"+str(x14,5)
  186. if x13<>0
  187. @ prow(),98 say "|"+str(x15,5)
  188. y15=y15+x15
  189. else
  190. @ prow(),98 say "|"+"  ~~%"
  191. endif
  192. @ prow(),104 say "|"+str(x16,5)
  193. @ prow(),110 say "|"+str(x17,5)
  194. if x16<>0
  195. @ prow(),116 say "|"+str(x18,5)+"|"
  196. y18=y18+x18
  197. else
  198. @ prow(),116 say "|"+"  ~~%"+"|"
  199. endif
  200. sele 1
  201. skip
  202. @ prow()+1,1 say ì
  203. "|------------|-----|-----|-----|-----|-----|-----|-----|-----|---ì
  204. --|-----|-----|-----|-----|-----|-----|-----|-----|-----|"
  205. enddo
  206. count to x
  207. y3=y3/x
  208. y6=y6/x
  209. y9=y9/x
  210. y12=y12/x
  211. y15=y15/x
  212. y18=y18/x
  213. sele 9
  214. @ prow()+1,1 say "|"+b1
  215. @ prow(),14 say "|"+str(b2,5)
  216. @ prow(),20 say "|"+str(b3,5)
  217. @ prow(),26 say "|"+str(b4,5)
  218. @ prow(),32 say "|"+str(b5,5)
  219. @ prow(),38 say "|"+str(b6,5)
  220. @ prow(),44 say "|"+str(b7,5)
  221. @ prow(),50 say "|"+str(b8,5)
  222. @ prow(),56 say "|"+str(b9,5)
  223. @ prow(),62 say "|"+str(b10,5)
  224. @ prow(),68 say "|"+str(b11,5)
  225. @ prow(),74 say "|"+str(b12,5)
  226. @ prow(),80 say "|"+str(b13,5)
  227. @ prow(),86 say "|"+str(b14,5)
  228. @ prow(),92 say "|"+str(b15,5)
  229. @ prow(),98 say "|"+str(b16,5)
  230. @ prow(),104 say "|"+str(b17,5)
  231. @ prow(),110 say "|"+str(b18,5)
  232. @ prow(),116 say "|"+str(b19,5)+"|"
  233. @ prow()+1,1 say "=========================================================================================================================="
  234. set print on
  235. ? chr(13)
  236. set print off
  237. set device to screen
  238. retu
  239.  
  240.