I'm sure we've all been through a phase where we were interested in what words would sound like backwards, or how to spell them backwards. With software like Audacity, you can record yourself saying things and play them backwards to see. In this assignment you'll use the BASIC string manipulation functions to reverse a word.
Here is a reminder of the commands you might need for this task.
INPUT - e.g. INPUT "What is your name? "; A$ will ask the question and store the answer in the variable called A$
FOR - repeats a section of your program a number of times - e.g. FOR N = 1 TO 10 will repeat 10 times, counting with N from 1 to 10. If you don't want to count in 1s, you can add STEP - e.g. FOR N = 5 TO 100 STEP 5 (to count up to 100 in 5s) or FOR N = 10 TO 1 STEP -1 (to count from 10 down to 1). You don't need to use N - it's just a programmers habit, like using x in algebra; any valid variable name will do.
NEXT - goes after FOR, at the end of the section that you want to repeat.
LEN - returns the number of characters in a fixed or string variable, e.g. LEN("Hello") returns the value 5.
MID$ - returns a given number of characters from a string, starting at a specified character, e.g. MID$("Hello", 2, 3) would return three characters from the string Hello, starting at the second character.
Your task is to produce a program to reverse words entered by the user. Your program should:
ask the user for a word
reverse the word and print the result
be clear and easy to use
The minimum output is the reversed word, but you can add extra text to make your program easier to understand.