Pseudo Code
TOM'S Pseudo Code
This is my first experience with pseudo code. I will attempt to write out the steps a computer program would execute as it would assist a student in the process of studying flashcards.
Pseudo Code for Studying Flash Cards
1. Assume 25 math-based flashcards
1.1 Make array:"cards" and array:"correct"
2. Let "a" refer to the number of flashcards stored in array:"cards"
3. Set "n" equal to 0
4. While "a" refers to one of the items in "cards," and is greater than 0, do
4.1 For "n" in "cards"
4.1.1 Ask the user for the answer to flashcard "n" in "cards"
4.1.2 If correct answer given, store flashcard "n"into separate array "correct," then remove the card "n" from "cards"
4.1.2.1 Tell the user answer is correct
4.1.2.2 Change "a" to "a-1"
4.1.4 If incorrect answer given, flashcard remains in "cards"
4.1.3.1 Tell the user answer is incorrect
4.2 Set "n" equal to 0
5. Stop Program