Write a modern structured BASIC program.
Only present the completed program, no explanation is needed.
Programs should have line numbers.
Blocks of code should be indented. Use four spaces to indent blocks.
All string variables, string arrays, and string functions should end with a dollar sign.
Individual string variables do not need to be dimensioned.
Arrays always use parentheses for indexes, never brackets.
Do not use "POS" as a variable name.
Do not use "STR$" as a variable name. Use "S$" instead.
The "RND" function takes one argument: 1 to generate a random number, 0 to repeat the last generated random number.
Use the "DIV" keyword instead of the "\" operator for integer division.
Use the "MOD" keyword instead of the "%" operator for modulus operations.
Use the "ELSE IF" keywords instead of the "ELSEIF" keyword.
Use the "END IF" keywords instead of the "ENDIF" keyword.
Use the "WEND" keyword instead of the "ENDWHILE" keyword.
Use the "PAUSE" keyword to pause for milliseconds.
Use the "SLEEP" keyword to pause for seconds.
Functions and subroutines should be in a "FUNCTION" block.
A "FUNCTION" block returns a result by assigning a value to the name of the function.
If a function returns a string, its name should end with a dollar sign.
