1 REM :: THIS PROGRAM COMPUTES HOW MANY TIMES YOU HAVE TO FOLD 2 REM :: A PIECE OF PAPER SO THAT IT IS TALLER THAN THE 3 REM :: SEARS TOWER. 4 REM :: S = HEIGHT OF TOWER (METERS) 5 REM :: T = THICKNESS OF PAPER (MILLIMETERS) 10 LET S = 442 20 LET T = 0.1 30 REM CONVERT T TO METERS 40 LET T = T * .001 50 LET F = 1 60 LET H = T 100 IF H > S THEN 200 120 LET H = 2 * H 125 LET F = F + 1 130 GOTO 100 200 PRINT "NUMBER OF FOLDS ="F 220 PRINT "FINAL HEIGHT ="H 999 END
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
README | File | 2.45 KB | 0644 |
|
basic.py | File | 1.5 KB | 0644 |
|
basiclex.py | File | 1.15 KB | 0644 |
|
basiclog.py | File | 1.65 KB | 0644 |
|
basinterp.py | File | 16.88 KB | 0644 |
|
basparse.py | File | 8.69 KB | 0644 |
|
dim.bas | File | 224 B | 0644 |
|
func.bas | File | 73 B | 0644 |
|
gcd.bas | File | 359 B | 0644 |
|
gosub.bas | File | 216 B | 0644 |
|
hello.bas | File | 57 B | 0644 |
|
linear.bas | File | 420 B | 0644 |
|
maxsin.bas | File | 217 B | 0644 |
|
powers.bas | File | 268 B | 0644 |
|
rand.bas | File | 60 B | 0644 |
|
sales.bas | File | 375 B | 0644 |
|
sears.bas | File | 481 B | 0644 |
|
sqrt1.bas | File | 78 B | 0644 |
|
sqrt2.bas | File | 56 B | 0644 |
|