Unit 1-05

Unit #1-05

Learning Outcome

At the end of this lesson, you will be able to:

  • create an application that uses a looping structure

Silent Watching

Review

  • review the Albert Einstein solution

Lesson

  • go over "Repetitions", Chapter 3
    • Computer Based Problem Solving

Activity

  • read the following problem:
    • Create a program called DiceGame. The game will generate a random number between 1 and 6. It will then ask the user to guess the number and will keep track of the number of guesses until the user gets the right answer. It will then tell the user how many guesses it took
  • solve it in Google Docs using "proper" flowchart symbols

Daily Assignment

  • post the solution and then the final program on your website
    1. top-down design
    2. flow-chart
    3. pseudo-code
    4. at least three (3) test cases calculated out using some other method then your program (ensure you show how you calculated each one of them out!)
    5. actual code
    6. three screen shots of the program working (with actual values from your test cases above)
    7. link and screenshot of Github repo
  • once your first 2 steps are done, code the next 3
    • post all items to your website

Extra

  • do the above game but let the user choose the range (1 to ?)