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

  1. clear
  2. set talk off
  3. set device to screen
  4. close database
  5. use cr
  6. a='      '
  7. @ 4,15 say "╟δ╩Σ╚δ─Ω,╘┬" get a pict '99.99'
  8. read
  9. q=a
  10. j1=substr(a,4,2)
  11. j2='01'
  12. j3=substr(a,1,2)
  13. a=j1+'/'+j2+'/'+j3
  14. a=ctod(a)
  15. c=month(a)
  16. d=c/2
  17. e=int(d)
  18. if c<=7
  19. if c=2
  20. b=a+27
  21. endif
  22. if d-e<>0
  23. b=a+30
  24. else
  25. b=a+29
  26. endif
  27. else
  28. if d-e<>0
  29. b=a+29
  30. else
  31. b=a+30
  32. endif
  33. endif
  34. sum l3*l4 to x for l10='r' .and. l2>=a .and. l2<=b
  35. sum l3*l4 to y for l10='c' .and. l2>=a .and. l2<=b
  36. sum l3*l4 to z for l10='h' .and. l2>=a .and. l2<=b
  37. @ 1,30 say " "+q+"╡─│÷╚δ┐Γ╟Θ┐÷(╡Ñ╬╗:╘¬)"
  38. @ 3,1 say "    ╜°┐Γ╜≡╢ε            │÷┐Γ╜≡╢ε            ╗╪╩╒╜≡╢ε        ì
  39.     ╫▄╞╜║Γ"
  40. @ 5,1 say " "+str(x,10,2)
  41. @ 5,20 say " "+str(y,10,2)
  42. @ 5,40 say " "+str(z,10,2)
  43. u=x+z-y
  44. @ 5,60 say " "+str(u,10,2)
  45. wait '┤≥╙í┬≡(Y/N)' to w
  46. if w<>'y'
  47. close database
  48. retu
  49. endif
  50. clear
  51. @ 4,20 say "╒²╘┌┤≥╙íú¼╟δ╔╘║≥úí"
  52. set cons off
  53. set device to print 
  54. set print on
  55. ? chr(27)+"IJ"
  56. set print off
  57. @ prow()+1,20 say " "+q+"╡─╜°│÷┐Γ╟Θ┐÷(╡Ñ╬╗:╘¬)"
  58. @ prow()+1,1 say "                    "
  59. @ prow()+1,1 say ì
  60. "====================================================="
  61. @ prow()+1,1 say "|╜°┐Γ╜≡╢ε    |│÷┐Γ╜≡╢ε    |╗╪╩╒╜≡╢ε    |╫▄╞╜║Γ    ì
  62.   |"
  63. @ prow()+1,1 say ì
  64. "|------------|------------|------------|------------|"
  65. @ prow()+1,1 say "|"+str(x,10,2)
  66. @ prow(),14 say "|"+str(y,10,2)
  67. @ prow(),27 say "|"+str(z,10,2)
  68. @ prow(),40 say "|"+str(u,10,2)+"  |"
  69. @ prow()+1,1 say ì
  70. "====================================================="
  71. set print on
  72. ? chr(13)
  73. set print off
  74. set device to screen
  75. set cons on
  76. retu
  77.