Below are the program behaviors you will study in different programming languages and with different implementations.
- The user is prompted to input the word "cat"
- If they do not input "cat", they are prompted again
- If they do input "cat", the program ends
- The user inputs some text
- The user is prompted to input "repeat", "reverse" or "repeat reverse"/"reverse repeat"
- Depending on the user's input, the program will:
- "repeat" -> the text is printed n times on a new line
- "reverse" -> the text is reversed
- "repeat reverse"/"reverse repeat" -> the reversed text is printed on n lines
- The program ends
- The user inputs one number at a time
- The program will ignore values that are not numbers
- When they input "done", the program displays the average
- The program ends
- The user creates a number of flashcards by inputting a question and an answer separated by
::
- When the user is finished creating flashcards, they input "done"
- The user is then presented with a randomized questions and must input the correct answers
- When all questions are answered, the user's results is presented
- The program ends.
- The user creates questions for the quiz:
- The user inputs the question, then one possible answer at a time:
- The answer + whether the answer is correct/incorrect
- When they are finished adding answers to a question they type "done
- When the user is finished adding questions, they type "done"
- The user inputs the question, then one possible answer at a time:
- The user is presented with one question + possible answers at a time
- to answer a question, they type the letter of their answer choice
- When all the questions are answered, feedback is displayed and the program ends