Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QBasic 1.45 KB | None | 0 0
  1. l20:
  2. PRINT"++++++++++++++++++++++++++++++"
  3. PRINT"++programed by ayoub(FCINTER++"
  4. PRINT"++++++++++++++++++++++++++++++"
  5.  
  6. PRINT"*********v1.0.0**********"
  7.  
  8. PRINT "                           //welcome//                          "
  9.  
  10. PRINT"Choose what to do?"
  11.  
  12. PRINT"Calculate acceleration <a> ----(1)"
  13. PRINT"Calculate time <t>----(2)"
  14. PRINT"Calculate finale speed <fs>----(3)"
  15. PRINT"Calculate initial speed <is>----(4)"
  16. PRINT"Calculate deplacement <d>----(5)"
  17. INPUT"you choise is:"; c
  18. IF c = 1 THEN
  19.     INPUT"enter time (t)"; t
  20.     INPUT"enter initial speed"; i
  21.     INPUT"enter final speed"; f
  22.     a = (F - I) / T
  23.  
  24.     PRINT "acceleration is"; a
  25.     ELSEIF c = 2 THEN
  26.     INPUT"enter initial  speed"; i1
  27.     INPUT"enter final speed"; f1
  28.     INPUT"enter acceleration"; a1
  29.     T = (F1 - I1) / 2
  30.     PRINT "time is "; T
  31.     ELSEIF c = 3 THEN
  32.     INPUT "enter initial speed"; i2
  33.     INPUT "enter acceleration"; a2
  34.     INPUT "enter time"; t2
  35.     f2 = I2 + (A2 * T2)
  36.     PRINT "the final speed is "; f2
  37.     ELSEIF c = 4 THEN
  38.     INPUT"enter final speed"; f3
  39.     INPUT"enter acceleration"; a3
  40.     INPUT "enter time"; t3
  41.     i3 = F3 - (A3 * T3)
  42.     PRINT " the initial speed is "; i3
  43.     ELSEIF c = 5 THEN
  44.     INPUT "enter initial speed"; i4
  45.     INPUT "enter time "; t4
  46.     INPUT "enter acceleration "; a4
  47.     d = I4 * T4 + (0.5 * A4 * T4 ^ 2)
  48.     PRINT "the displacement is "; d
  49.     ELSE
  50.     PRINT "please enter a right number "
  51.     GOTO l20
  52. END IF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement