Lab 4 - Pseudocode
Challenge
The challenge here is to pseduocode a computer game and one normal activity.
Problems
When we first started, we had problems with the walking pseduocode and we got too specific by using lower-level instructions for the pseudocode when the assignment asked for high-level instructions only.
Reflection
Kira and I had an enthusiastic attitude and we enjoyed coming up with different ideas for the pseudocode.
Results
// Walking Tutorial // Instructions for proper walking // @author Michael Quinnand Kira Way // April 21st 2023 Preparation Upright standing position Lean forward slightly For the foot posture… The toes of your foot should point forward Keep feet beneath center of gravity On one leg… Lift lower leg Rotate leg forward Lower lower leg On the opposing arm… Swing the arm forward On the nearby arm… Swing the arm backward Repeat on other leg. Repeat all until you have reached your destination.
// Rock_Paper_Scissors
// An implementation of the game
// @author Michael Quinn and Kira Way
// April 21st 2023
Ask for rock, paper, or scissors
Collect user input
Randomly select rock, paper, or scissors for computer input
Calculate results
Tell user if they won, lost, or tied
Let the player start again