Advertisement
Prithak

Basun

Mar 14th, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. CLS
  2. menu:
  3. COLOR 2
  4. PRINT STRING$(80, "*")
  5. COLOR 5
  6. PRINT "1) Addition"
  7. PRINT "2) Subtraction"
  8. PRINT "3) Multiplication"
  9. PRINT "4) Division"
  10. COLOR 6
  11. PRINT
  12. PRINT "5) Trigonometric Formulas"
  13. PRINT "6) Find the Surface Area of a Prism"
  14. PRINT "7) Find the Volume of a Prism"
  15. PRINT "8) Find Area of 4 Walls"
  16. PRINT
  17. COLOR 7
  18. PRINT "9) SIN()"
  19. PRINT "10) COS()"
  20. PRINT "11) TAN()"
  21. PRINT
  22. COLOR 8
  23. PRINT "12) Exit the Program"
  24. COLOR 2
  25. PRINT STRING$(80, "*")
  26. INPUT "Enter your choice"; ch
  27. SELECT CASE ch
  28. CASE 1
  29. CLS
  30. INPUT "Enter first number", a
  31. INPUT "Enter second number", b
  32. PRINT "The Addition: "; a + b
  33. CASE 2
  34. CLS
  35. INPUT "Enter first number", a
  36. INPUT "Enter second number", b
  37. PRINT "The Subtraction: "; a - b
  38. CASE 3
  39. CLS
  40. INPUT "Enter first number", a
  41. INPUT "Enter second number", b
  42. PRINT "The Multiplication: "; a * b
  43. CASE 4
  44. CLS
  45. INPUT "Enter first number", a
  46. INPUT "Enter second number", b
  47. PRINT "The Division: "; a / b
  48. CASE 5
  49. CLS
  50. PRINT "sin0 = p/h ";
  51. PRINT "cosec0 = h/p ";
  52. PRINT "cos0 = b/h ";
  53. PRINT "tan0 = p/b ";
  54. PRINT "cot0 = b/p "
  55. PRINT
  56. PRINT "sin A x cosec A = 1 ";
  57. PRINT "cos A x sec A = 1 ";
  58. PRINT "cot A x tan A = 1 "
  59. PRINT
  60. PRINT "cos ^ 2 0 + sin ^ 2 0 = 1 ";
  61. PRINT "cot A = cos A/sin A ";
  62. PRINT "tan A = sin A/cos A "
  63. PRINT
  64. PRINT "sec ^ 2 0 - tan ^ 2 0 = 1 ";
  65. PRINT "cosec ^2 0 - cot ^2 0 = 1 "
  66. CASE 6
  67. INPUT "Enter The Perimeter of Cross Section", p
  68. INPUT "Enter the height of the prism", h
  69. INPUT "Enter the Area of Cross-Section", a
  70. T.S.A = p * h + 2 * a
  71. PRINT "The Total Surface Area: "; T.S.A
  72. CASE 7
  73. INPUT "Enter the Area of Cross Section"; a
  74. INPUT "Enter the height of the prism"; h
  75. volm = a * h
  76. PRINT "The Volume of the Prism:"; volm
  77. CASE 8
  78. INPUT "Enter the height of the room"; h
  79. INPUT "Enter the length of the room"; l
  80. INPUT "Enter the breadth of the room"; b
  81. a4w = 2 * h * (l + b)
  82. PRINT "Area of 4 Walls"; a4w
  83. CASE 9
  84. INPUT "Enter a number"; a
  85. pi = 3.1416
  86. PRINT "The Approximate Value in Degrees: "; SIN(180 / pi * a)
  87. CASE 10
  88. INPUT "Enter a number"; a
  89. pi = 3.1416
  90. PRINT "The Approximate Value in Degrees: "; COS(180 / pi * a)
  91. CASE 11
  92. INPUT "Enter a number"; a
  93. pi = 3.1416
  94. PRINT "The Approximate Value in Degrees: "; TAN(180 / pi * a)
  95. CASE 12
  96. END
  97. END SELECT
  98. INPUT "Do you want to continue running the program?(Y/N)", ch$
  99. IF ch$ = "y" THEN
  100. GOTO menu
  101. ELSE
  102. END
  103. END IF
  104. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement