home *** CD-ROM | disk | FTP | other *** search
- Rem Space Travel
- Rem
- Rem See SPACE01.BAS and
- Rem SPACE02.BAS for other
- Rem examples
- cls
- Print "You're traveling to another planet!"
- Print "We need to know how much you weigh: "
- input weight
- Print "Which planet will you be traveling to?"
- Print "Choose a number from the list:"
- Print "1. Mercury"
- Print "2. Mars"
- Print "3. Venus"
- Print "4. Earth"
- Print "5. Saturn"
- Print "6. Uranus"
- Print "7. Neptune"
- Print "8. Jupiter"
- Print "9. Pluto"
- input planet
-
- if planet = 1 then
- let modify = .37
- let planet$ = "Mercury"
- endif
-
- if planet = 2 then
- let modify = .38
- let planet$ = "Mars"
- endif
-
- if planet = 3 then
- let modify = .88
- let planet$ = "Venus"
- endif
-
- if planet = 4 then
- let modify = 1.00
- let planet$ = "earth"
- endif
-
- if planet = 5 then
- let modify = 1.15
- let planet$ = "Saturn"
- endif
-
- if planet = 6 then
- let modify = 1.17
- let planet$ = "Uranus"
- endif
-
- if planet = 7 then
- let modify = 1.18
- let planet$ = "Neptune"
- endif
-
- if planet = 8 then
- let modify = 2.64
- let planet$ = "Jupiter"
- endif
-
- if planet = 9 then
- let modify = 3.07
- let planet$ = "Pluto"
- endif
-
- Print "Your weight on ";
- Print planet$;
- Print " is ";
- Print weight * modify
- end
-