Lab 4: Pseudocoding and Problem-Solving

Learing how to pseudocode before coding.

Challenges

The biggest challenge for me is that I wasn't sure if I was writing the pseudocode right. It was a bit confusing as to how to word the game we were breaking down into steps using the pseudocoding.

Problems

The only problem I had was the terminalogy I was suppose to use when breaking down the game and if I was suppose to add the pseudocode steps to the top of every step.

Results

I honestly don't know if I did any of it right but it looks right to me.

How to make pasta.

  1. Boil a pot of water at medium high temp.
  2. Put a pinch of salt into the boiling water.
  3. Use a box of Penne pasta.
  4. Let it boil for 10 minuets.
  5. While the pasta is boiling, make the tamato sauce
  6. In a saute pan add oil, one cut of garlic, and dices of onion. When the garlic and onion brown, use a whole can of crushed tomato. Then add the whole can of tomato sauce. When that starts to boil, add a half can of tomato paste. Start to add a little bit of salt, Italiana spice, Oregino, and sugar to the sauce.
  7. Let the sauce sit for 2 minutes. While it's sitting, check on the pasta.
  8. After straining the pasta of any excess water. Enjoy a bowl of Penne patsa with homemade tomato sauce

Creating a Hangman game:

  1. Make the board before each game
  2. Accept user input
  3. Evaluate the users chosen letter
  4. Evaluate the hidden name
  5. Choose computer move
  6. Test of win or lose condition
			//Make the board before every game
			  //Loop through every letter in the name
			    // Write correct letter on space
			    // Draw each body part for wrong letter
			  //Make new line spaces for new name
			  //Make arch for the body