Respond to this messageReturn to Index
Original Message
  • A lot depends on the description of the assignment, too...
    • (Login The-Universe)
      Admin
      Posted Jul 28, 2010 1:27 PM


      For instance, an instructor might want to have the student include DATA statements like...

      CLS
      REM Make a loop to read
      FOR i = 1 TO 3
      READ person$, height!
      PRINT person$ + " is"; height!; "tall.": PRINT each line of data to the screen.
      totalheight! = totalheight! + height!: REM adds heights together.
      NEXT

      REM Print the total results to the screen.
      PRINT
      PRINT "The combined height of all people / paper clips is:"; totalheight!
      END

      DATA Fred, 6.2
      DATA Cathy, 5.5
      DATA Clippy, .75
    Your Name
    Your Email
    (Optional)
    Message Title
    Message Text
    Options Also send responses to my email address