Unit 1-06

Learning Outcome

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

  • create an application that uses procedure

Silent Watching

Review

  • review the Microwave solution

Lesson

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

Activity

  • read the following problem:
    • Create a program that has a procedure called public static void RollDie(int maxValue)
    • It will randomly generate a value between 1 and maxValue and then place the value in the console.
    • (I know not really useful!)
  • just do the design for the procedure, not the rest of the program that will call the procedure

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 program working (with actual values from your test cases above)
    7. zipped up solution file
  • once your first 2 steps are done, code the next 3
    • post all items to your website

Extra

  • do the above have an optional parameter for a minimum value