Data update

This commit is contained in:
Ingy döt Net 2024-10-16 18:07:41 -07:00
parent 81fd053722
commit 52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions

View file

@ -0,0 +1,27 @@
PROGRAM "Determine sentence type"
VERSION "0.0000"
DECLARE FUNCTION Entry ()
DECLARE FUNCTION SentenceType$ (s$)
FUNCTION Entry ()
DIM spam$[4]
spam$[1] = "hi there, how are you today?"
spam$[2] = "I'd like to present to you the washing machine 9001."
spam$[3] = "You have been nominated to win one of these!"
spam$[4] = "Just make sure you don't break it"
FOR i = 1 TO 4
PRINT spam$[i]; " -> "; SentenceType$(spam$[i])
NEXT i
END FUNCTION
FUNCTION SentenceType$ (s$)
SELECT CASE RIGHT$(s$, 1)
CASE "?": RETURN "Q"
CASE "!": RETURN "E"
CASE ".": RETURN "S"
CASE ELSE: RETURN "N"
END SELECT
END FUNCTION
END PROGRAM