whoDatJO.bas

100 PRINT “Hey! What’s your name?”
200 INPUT name$

300 IF name$ = “Jesenya” OR name$ = “jesenya” THEN GOTO 450
330 IF name$ = “Lev” OR name$ = “lev” THEN GOTO 480

400 PRINT “You have a nice name but you aren’t who I am looking for.

450 PRINT “You have such a beautiful name.”
460 GOTO 500

480 PRINT “YOU HAVE SUCH A TERRIBLE NAME”

500 PRINT “You have reached the end of the program.”
510 END

Advertisements

One thought on “whoDatJO.bas

  1. senyaleo November 29, 2016 / 9:17 PM

    Line 330 is an example of a logical conditional. It works as a logical conditional because when tested in the code, if your name is not Lev or lev, it takes you to a completely different conclusion. Meaning a different line (480). A logical conditional has a hypothesis and a conclusion. For instance, following the form of IF there is a blizzard (hypothesis), THEN there is no school (conclusion).

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s